diff --git a/src/Umbraco.Web.UI.Client/src/shared/router/route.context.ts b/src/Umbraco.Web.UI.Client/src/shared/router/route.context.ts index d5a118c0a3..00ed0028b8 100644 --- a/src/Umbraco.Web.UI.Client/src/shared/router/route.context.ts +++ b/src/Umbraco.Web.UI.Client/src/shared/router/route.context.ts @@ -72,7 +72,7 @@ export class UmbRouteContext extends UmbBaseController { } #removeModalPath(info: IRoutingInfo) { - // Reset the URL to the routerBasePath + // Reset the URL to the routerBasePath + routerActiveLocalPath const folderToRemove = info.match.match.input; if (folderToRemove && window.location.href.includes(folderToRemove)) { window.history.pushState({}, '', this.#routerBasePath + '/' + this.#routerActiveLocalPath);