auth-module
auth-module copied to clipboard
Check for existing route query params on redirect
Hello. Any chance of making this change on master. File is: https://github.com/nuxt-community/auth-module/blob/master/lib/templates/auth.class.js Line 311.
Change it from
if (name === 'login') {
to = to + '?redirect=' + encodeURIComponent(from)
}
To
if (name === 'login') {
let sign = /\?/.test(to) ? '&' : '?'
to = to + sign +'redirect=' + encodeURIComponent(from)
}
@Sheby Should be fixed in the dev branch.
4.0.0 released! (Now it uses localStorage to memorize redirectBack URL)