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 be368d8 commit 5df14c6Copy full SHA for 5df14c6
src/history/hash.js
@@ -27,7 +27,7 @@ export default class HashHistory {
27
const query = location.search && path.indexOf('?') > -1
28
? '&' + location.search.slice(1)
29
: location.search
30
- self.onChange(decodeURI(path.replace(/^#!?/, '') + query))
+ self.onChange(path.replace(/^#!?/, '') + query)
31
}
32
window.addEventListener('hashchange', this.listener)
33
this.listener()
src/history/html5.js
@@ -23,7 +23,7 @@ export default class HTML5History {
23
24
start () {
25
this.listener = (e) => {
26
- let url = decodeURI(location.pathname + location.search)
+ let url = location.pathname + location.search
if (this.root) {
url = url.replace(this.rootRE, '')
0 commit comments