This commit is contained in:
Niels Lyngsø
2024-04-30 10:42:21 +02:00
parent f2f0391f5f
commit 0eb736418c

View File

@@ -70,10 +70,8 @@ export class UmbRouteContext extends UmbContextBase<UmbRouteContext> {
}
#removeModalPath(info: IRoutingInfo) {
// Reset the URL to the routerBasePath + routerActiveLocalPath
// Reset the URL to the routerBasePath + routerActiveLocalPath [NL]
const folderToRemove = info.match.fragments.consumed;
console.log('removeModalPath?', folderToRemove, info);
console.log('href', window.location.href);
if (folderToRemove && window.location.href.includes(folderToRemove)) {
window.history.pushState({}, '', this.#routerBasePath + '/' + this.#routerActiveLocalPath);
}