#108 Fixed redirect loop for /signup when already logged in
parent
88ca3e4b68
commit
a874c88c51
|
@ -81,7 +81,7 @@ const
|
|||
|
||||
// Path for redirects
|
||||
let nextPath = ((req.query.next)?req.query.next: req.path.substring(0,req.path.indexOf('#')) || req.path );
|
||||
if ( nextPath.substring(0,6)!=='/login' && nextPath.substring(0,7)!=='/logout' && nextPath.substring(0,7)!=='/static' ){
|
||||
if ( nextPath.substring(0,6)!=='/login' && nextPath.substring(0,7)!=='signup' && nextPath.substring(0,7)!=='/logout' && nextPath.substring(0,7)!=='/static' ){
|
||||
req.session.next = nextPath+'#';
|
||||
debug(`Set redirect path to ${nextPath}#`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue