Skip to content

Commit 761fe01

Browse files
author
crossjs
committed
use push instead of replace in ensureURL
1 parent 57e8e22 commit 761fe01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/history/hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class HashHistory extends History {
5959

6060
ensureURL () {
6161
if (getHash() !== this.current.fullPath) {
62-
replaceHash(this.current.fullPath)
62+
pushHash(this.current.fullPath)
6363
}
6464
}
6565
}

src/history/html5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class HTML5History extends History {
6161

6262
ensureURL () {
6363
if (getLocation(this.base) !== this.current.fullPath) {
64-
replaceState(cleanPath(this.base + this.current.fullPath))
64+
pushState(cleanPath(this.base + this.current.fullPath))
6565
}
6666
}
6767

0 commit comments

Comments
 (0)