fronten-app-api: routing system matches subroutes

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-10-10 23:22:38 +02:00
parent 00d9803ce9
commit 1e60a9c3a5
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -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,
})),
);
+1 -1
View File
@@ -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(