We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba05490 commit 5ca9883Copy full SHA for 5ca9883
src/history/hash.js
@@ -90,8 +90,10 @@ function pushHash (path) {
90
}
91
92
function replaceHash (path) {
93
- const i = window.location.href.indexOf('#')
+ const href = window.location.href
94
+ const i = href.indexOf('#')
95
+
96
window.location.replace(
- window.location.href.slice(0, i >= 0 ? i : 0) + '#' + path
97
+ window.location.href.slice(0, i >= 0 ? i : href.length) + '#' + path
98
)
99
0 commit comments