From 2e65865d9370f47e3c54b2f3d3ff75650995a267 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 17 Mar 2026 10:27:00 +0100 Subject: [PATCH] fix: use TechDocs root route for NFS breadcrumb Point the NFS TechDocs reader breadcrumb at the docs index route so the new header wiring type-checks and links back to the correct page. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- plugins/techdocs/src/alpha/NfsTechDocsReaderLayout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/techdocs/src/alpha/NfsTechDocsReaderLayout.tsx b/plugins/techdocs/src/alpha/NfsTechDocsReaderLayout.tsx index 806d286ceb..724545a7a2 100644 --- a/plugins/techdocs/src/alpha/NfsTechDocsReaderLayout.tsx +++ b/plugins/techdocs/src/alpha/NfsTechDocsReaderLayout.tsx @@ -42,7 +42,7 @@ import { import { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api'; import { TechDocsReaderPageContent } from '../reader/components/TechDocsReaderPageContent'; import { TechDocsReaderPageSubheader } from '../reader/components/TechDocsReaderPageSubheader'; -import { rootDocsRouteRef } from '../routes'; +import { rootRouteRef } from '../routes'; const skeleton = ; @@ -51,7 +51,7 @@ const NfsTechDocsReaderPageHeader = (props: PropsWithChildren<{}>) => { const addons = useTechDocsAddons(); const configApi = useApi(configApiRef); const entityPresentationApi = useApi(entityPresentationApiRef); - const docsRootLink = useRouteRef(rootDocsRouteRef)(); + const docsRootLink = useRouteRef(rootRouteRef)(); const { '*': path = '' } = useParams(); const {