We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d286963 commit 6d48ce1Copy full SHA for 6d48ce1
src/core/router/history/hash.js
@@ -58,17 +58,17 @@ export class HashHistory extends History {
58
parse (path = location.href) {
59
let query = ''
60
61
+ const hashIndex = path.indexOf('#')
62
+ if (hashIndex) {
63
+ path = path.slice(hashIndex + 1)
64
+ }
65
+
66
const queryIndex = path.indexOf('?')
67
if (queryIndex >= 0) {
68
query = path.slice(queryIndex + 1)
69
path = path.slice(0, queryIndex)
70
}
71
- const hashIndex = path.indexOf('#')
- if (hashIndex) {
- path = path.slice(hashIndex + 1)
- }
-
72
return {
73
path,
74
file: this.getFile(path),
0 commit comments