Merge pull request #11542 from backstage/mob/fix-entity-docs-bug

[TechDocs] Fix Entity Docs Routes
This commit is contained in:
Camila Belo
2022-05-17 10:50:58 +02:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Add a `sub-route` path on the EntityDocs page to fix the blank screen error when navigating using sidebar links.
+3 -1
View File
@@ -69,7 +69,9 @@ export const EmbeddedDocsRouter = (props: PropsWithChildren<{}>) => {
return (
<Routes>
<Route element={<EntityPageDocs entity={entity} />}>{children}</Route>
<Route path="*" element={<EntityPageDocs entity={entity} />}>
{children}
</Route>
</Routes>
);
};