From d2cc4b8516fc1167e83f5dfbdfaefbc5b2f042a5 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 26 Oct 2014 18:02:40 -0400 Subject: [PATCH] possibly fixes 2301 --- src/middleware/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }