We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 119db3d commit d8ab5d3Copy full SHA for d8ab5d3
packages/core/src/router.ts
@@ -544,9 +544,7 @@ export class Router {
544
private _replaceState(page: Page): void {
545
const currentId = window.history.state?._id ?? this.getStateId();
546
window.sessionStorage.setItem(currentId, JSON.stringify(page));
547
- if (!window.history.state?._id) {
548
- window.history.replaceState({_id: currentId}, '', page.url);
549
- }
+ window.history.replaceState({_id: currentId}, '', page.url);
550
}
551
552
protected replaceState(page: Page): void {
0 commit comments