Move fix to AppRoutes
Signed-off-by: James Brooks <jamesbrooks@spotify.com>
This commit is contained in:
@@ -154,7 +154,7 @@ export function renderInTestApp(
|
||||
factory: () => {
|
||||
return [
|
||||
coreExtensionData.reactElement(element),
|
||||
coreExtensionData.routePath(''),
|
||||
coreExtensionData.routePath('/'),
|
||||
];
|
||||
},
|
||||
}),
|
||||
|
||||
@@ -42,7 +42,9 @@ export const AppRoutes = createExtension({
|
||||
|
||||
const element = useRoutes([
|
||||
...inputs.routes.map(route => ({
|
||||
path: `${route.get(coreExtensionData.routePath)}/*`,
|
||||
path: `${route
|
||||
.get(coreExtensionData.routePath)
|
||||
.replace(/\/$/, '')}/*`,
|
||||
element: route.get(coreExtensionData.reactElement),
|
||||
})),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user