Skip to content

Commit

Permalink
fix: replace in navigate (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminPabst authored Oct 24, 2024
1 parent 0de5caf commit bb648d1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
})
}

0 comments on commit bb648d1

Please sign in to comment.