techdocs: fix addons not rendering on subpages with react router v6

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-09-05 12:30:19 +02:00
parent ecaaaa2b3c
commit 7a95c705fa
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-techdocs': patch
---
Fixed a bug where addons wouldn't render on sub pages when using React Route v6 stable.
+1 -1
View File
@@ -68,7 +68,7 @@ export const EmbeddedDocsRouter = (props: PropsWithChildren<{}>) => {
element: <EntityPageDocs entity={entity} />,
children: [
{
path: '/*',
path: '*',
element: children,
},
],