From e281c0fa2e3a8005689ef6768da90aadf8ec86a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 7 Nov 2024 15:46:21 +0100 Subject: [PATCH] call _updateRouterPath --- .../src/packages/core/router/router-slot.element.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/router/router-slot.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/router/router-slot.element.ts index f1dab85e56..e2bc6353c9 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/router/router-slot.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/router/router-slot.element.ts @@ -94,13 +94,7 @@ export class UmbRouterSlotElement extends UmbLitElement { protected override firstUpdated(_changedProperties: PropertyValueMap | Map): void { super.firstUpdated(_changedProperties); - this._routerPath = this._constructAbsoluteRouterPath(); - this.#routeContext._internal_routerGotBasePath(this._routerPath); - this.dispatchEvent(new UmbRouterSlotInitEvent()); - const newActiveLocalPath = this._constructLocalRouterPath(); - if (this._activeLocalPath !== newActiveLocalPath) { - this.#router.routes = [...this.#router.routes]; - } + this._updateRouterPath(); } protected _updateRouterPath() {