From 9ed16e6eaed87ce26693f27abb2108ebb05b5f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 23 Mar 2023 11:24:11 +0100 Subject: [PATCH] move method --- .../src/core/router/route.context.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/core/router/route.context.ts b/src/Umbraco.Web.UI.Client/src/core/router/route.context.ts index 40eae2d516..bd9233aab9 100644 --- a/src/Umbraco.Web.UI.Client/src/core/router/route.context.ts +++ b/src/Umbraco.Web.UI.Client/src/core/router/route.context.ts @@ -32,12 +32,6 @@ export class UmbRouteContext { }); } - #removeModalPath(info: IRoutingInfo) { - if (window.location.href.includes(info.match.fragments.consumed)) { - window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]); - } - } - public registerModal(registration: UmbModalRouteRegistration) { this.#modalRegistrations.push(registration); this.#generateNewUrlBuilder(registration); @@ -77,6 +71,12 @@ export class UmbRouteContext { }; } + #removeModalPath(info: IRoutingInfo) { + if (window.location.href.includes(info.match.fragments.consumed)) { + window.history.pushState({}, '', window.location.href.split(info.match.fragments.consumed)[0]); + } + } + #generateContextRoutes() { this.#contextRoutes = this.#modalRegistrations.map((modalRegistration) => { return this.#generateRoute(modalRegistration);