File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ export default class Auth {
304
304
return
305
305
}
306
306
307
- const from = this . options . fullPathRedirect ? this . ctx . route . path : this . ctx . route . fullPath
307
+ const from = this . options . fullPathRedirect ? this . ctx . route . fullPath : this . ctx . route . path
308
308
309
309
let to = this . options . redirect [ name ]
310
310
if ( ! to ) {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export const isSet = o => !isUnset(o)
4
4
export const isSameURL = ( a , b ) => a . split ( '?' ) [ 0 ] === b . split ( '?' ) [ 0 ]
5
5
6
6
export const isRelativeURL = u =>
7
- u && u . length && / ^ \/ [ a - z A - Z 0 - 9 @ \- % _ ~ ] [ / a - z A - Z 0 - 9 @ \- % _ ~ ] { 1 , 200 } $ / . test ( u )
7
+ u && u . length && / ^ \/ [ a - z A - Z 0 - 9 @ \- % _ ~ ] [ / a - z A - Z 0 - 9 @ \- % _ ~ ] * [ \? ] ? ( [ ^ \# ] * ) # ? ( [ ^ \# ] * ) $ / . test ( u )
8
8
9
9
export const parseQuery = queryString => {
10
10
const query = { }
You can’t perform that action at this time.
0 commit comments