From c4f923f285e5bb2780815d532432f0aa283ed87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 25 Jun 2024 13:32:57 +0200 Subject: [PATCH] reintroduce redirects in workspace --- .../components/workspace-editor/workspace-editor.element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-editor/workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-editor/workspace-editor.element.ts index 752797671f..cd43be73f3 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-editor/workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/components/workspace-editor/workspace-editor.element.ts @@ -73,13 +73,13 @@ export class UmbWorkspaceEditorElement extends UmbLitElement { // If we have a post fix then we need to add a direct from the empty url of the split-view-index: // TODO: This is problematic, cause if a workspaceView appears later, then this takes over. And it is also a problem if it does not use redirect, but just a view defined with and empty path. - /*const firstRoute = newRoutes[0]; + const firstRoute = newRoutes[0]; if (firstRoute) { newRoutes.push({ path: ``, redirectTo: firstRoute.path, }); - }*/ + } } this._routes = newRoutes;