diff --git a/src/middleware/middleware.js b/src/middleware/middleware.js index 13ef6c72fd..6d0b06b7dc 100644 --- a/src/middleware/middleware.js +++ b/src/middleware/middleware.js @@ -168,7 +168,7 @@ middleware.checkGlobalPrivacySettings = function(req, res, next) { return res.status(403).json('not-allowed'); } else { req.session.returnTo = req.url; - return res.redirect('login'); + return res.redirect('/login'); } }