From d0420ec2a15e65aef3ba060033bae39595bd750f Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Mon, 27 May 2024 13:39:48 +0200 Subject: [PATCH] remove "magic" route fallback to the first section --- .../components/backoffice-main.element.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts b/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts index d94257088e..d2c9ce601f 100644 --- a/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts +++ b/src/Umbraco.Web.UI.Client/src/apps/backoffice/components/backoffice-main.element.ts @@ -64,22 +64,6 @@ export class UmbBackofficeMainElement extends UmbLitElement { } }); - if (this._sections.length > 0) { - const fallbackSectionPath = UMB_SECTION_PATH_PATTERN.generateLocal({ - sectionName: this._sections[0].manifest!.meta.pathname, - }); - this._routes.push({ - alias: '__redirect', - path: '/', - redirectTo: fallbackSectionPath, - }); - this._routes.push({ - alias: '__redirect', - path: '/section/', - redirectTo: fallbackSectionPath, - }); - } - this.requestUpdate('_routes', oldValue); }