diff --git a/server.js b/server.js index 4415f27..90d2e4f 100755 --- a/server.js +++ b/server.js @@ -82,7 +82,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' ){ + if ( nextPath.substring(0,6)!=='/login' && nextPath.substring(0,7)!=='/logout' && nextPath.substring(0,7)!=='/static' ){ req.session.next = nextPath+'#'; winston.debug(`Set redirect path to ${nextPath}#`); }