Skip to content

Commit d8ab5d3

Browse files
committed
Remove check around replaceState
1 parent 119db3d commit d8ab5d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/router.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -544,9 +544,7 @@ export class Router {
544544
private _replaceState(page: Page): void {
545545
const currentId = window.history.state?._id ?? this.getStateId();
546546
window.sessionStorage.setItem(currentId, JSON.stringify(page));
547-
if (!window.history.state?._id) {
548-
window.history.replaceState({_id: currentId}, '', page.url);
549-
}
547+
window.history.replaceState({_id: currentId}, '', page.url);
550548
}
551549

552550
protected replaceState(page: Page): void {

0 commit comments

Comments
 (0)