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 <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 10:27:00 +01:00
parent aa22de55f4
commit 2e65865d93
@@ -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 = <Skeleton animation="wave" variant="text" height={40} />;
@@ -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 {