fix(entity-docs): add path to sub-routes

Co-authored-by: Anders Näsman <andersn@spotify.com>
Co-authored-by: Otto Sichert <git@ottosichert.de>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2022-05-17 10:22:30 +02:00
parent c1f303cc90
commit a34c5c9603
+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>
);
};