fronten-app-api: routing system matches subroutes
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/frontend-app-api': patch
|
||||
---
|
||||
|
||||
Fixed an issue preventing the routing system to match subroutes
|
||||
@@ -39,7 +39,7 @@ export const CoreRoutes = createExtension({
|
||||
const Routes = () => {
|
||||
const element = useRoutes(
|
||||
inputs.routes.map(route => ({
|
||||
path: route.path,
|
||||
path: `${route.path}/*`,
|
||||
element: route.element,
|
||||
})),
|
||||
);
|
||||
|
||||
@@ -34,7 +34,7 @@ export const userSettingsRouteRef = createRouteRef({
|
||||
|
||||
const UserSettingsPage = createPageExtension({
|
||||
id: 'plugin.user-settings.page',
|
||||
defaultPath: '/settings/*',
|
||||
defaultPath: '/settings',
|
||||
routeRef: userSettingsRouteRef,
|
||||
inputs: {
|
||||
providerSettings: createExtensionInput(
|
||||
|
||||
Reference in New Issue
Block a user