diff --git a/libs/angular-webcomponents/src/lib/utils/webcomponent-bootstrap.utils.ts b/libs/angular-webcomponents/src/lib/utils/webcomponent-bootstrap.utils.ts index 7c7dbe95..cf7011fe 100644 --- a/libs/angular-webcomponents/src/lib/utils/webcomponent-bootstrap.utils.ts +++ b/libs/angular-webcomponents/src/lib/utils/webcomponent-bootstrap.utils.ts @@ -172,7 +172,9 @@ function connectRouter(router: Router): Subscription { const routerUrl = `${location.pathname.substring(getLocation().deploymentPath.length)}${location.search}${location.hash}` if (routerUrl !== lastUrl) { lastUrl = routerUrl - router.navigateByUrl(routerUrl) + router.navigateByUrl(routerUrl, { + replaceUrl: true, + }) } }) }