Ignore static files when setting redirect path
parent
e23c00f41c
commit
359e7d1b94
|
@ -82,7 +82,7 @@ const
|
||||||
|
|
||||||
// Path for redirects
|
// Path for redirects
|
||||||
let nextPath = ((req.query.next)?req.query.next: req.path.substring(0,req.path.indexOf('#')) || req.path );
|
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' ){
|
if ( nextPath.substring(0,6)!=='/login' && nextPath.substring(0,7)!=='/logout' && nextPath.substring(0,7)!=='/static' ){
|
||||||
req.session.next = nextPath+'#';
|
req.session.next = nextPath+'#';
|
||||||
winston.debug(`Set redirect path to ${nextPath}#`);
|
winston.debug(`Set redirect path to ${nextPath}#`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue