File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ function getUrl (path) {
142
142
const query = searchPos > - 1 ? base . slice ( searchPos ) : ''
143
143
base = query ? base . slice ( 0 , searchPos ) : base
144
144
145
- return `${ base } #${ path + query } `
145
+ return `${ base } ${ query } #${ path } `
146
146
}
147
147
148
148
function pushHash ( path ) {
Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ module.exports = {
62
62
// https://github.com/vuejs/vue-router/issues/2125
63
63
. url ( 'http://localhost:8080/hash-mode/?key=foo' )
64
64
. waitForElementVisible ( '#app' , 1000 )
65
- . assert . urlEquals ( 'http://localhost:8080/hash-mode/#/ ?key=foo' )
65
+ . assert . urlEquals ( 'http://localhost:8080/hash-mode/?key=foo#/ ' )
66
66
. url ( 'http://localhost:8080/hash-mode?key=foo' )
67
67
. waitForElementVisible ( '#app' , 1000 )
68
- . assert . urlEquals ( 'http://localhost:8080/hash-mode/#/ ?key=foo' )
68
+ . assert . urlEquals ( 'http://localhost:8080/hash-mode/?key=foo#/ ' )
69
69
. url ( 'http://localhost:8080/hash-mode?key=foo#other' )
70
70
. waitForElementVisible ( '#app' , 1000 )
71
- . assert . urlEquals ( 'http://localhost:8080/hash-mode/#/other ?key=foo' )
71
+ . assert . urlEquals ( 'http://localhost:8080/hash-mode/?key=foo#/other ' )
72
72
. end ( )
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments