Move fix to AppRoutes
Signed-off-by: James Brooks <jamesbrooks@spotify.com>
This commit is contained in:
@@ -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