default routes
This commit is contained in:
@@ -63,6 +63,12 @@ export class UmbBackofficeMainElement extends UmbLitElement {
|
||||
}
|
||||
});
|
||||
|
||||
if(newRoutes.length > 0 ) {
|
||||
newRoutes.push({
|
||||
path: ``,
|
||||
redirectTo: newRoutes[0].path
|
||||
});
|
||||
}
|
||||
|
||||
newRoutes.push({
|
||||
path: `**`,
|
||||
|
||||
@@ -70,12 +70,14 @@ export class UmbWorkspaceEditorElement extends UmbLitElement {
|
||||
},
|
||||
} as UmbRoute;
|
||||
});
|
||||
|
||||
newRoutes.push({
|
||||
path: '',
|
||||
redirectTo: newRoutes[0]?.path,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
newRoutes.push({
|
||||
path: '',
|
||||
redirectTo: newRoutes[0]?.path,
|
||||
});
|
||||
newRoutes.push({
|
||||
path: `**`,
|
||||
component: async () => (await import('@umbraco-cms/backoffice/router')).UmbRouteNotFoundElement,
|
||||
|
||||
Reference in New Issue
Block a user