more comment

This commit is contained in:
Niels Lyngsø
2024-02-08 14:09:31 +01:00
parent 4dc0b74601
commit 736910598e

View File

@@ -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);