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:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user