diff --git a/src/middleware/user.js b/src/middleware/user.js index 141c574d5e..b12872bd67 100644 --- a/src/middleware/user.js +++ b/src/middleware/user.js @@ -237,7 +237,7 @@ module.exports = function (middleware) { if (res.locals.isAPI) { res.status(401).json({}); } else { - res.redirect(nconf.get('relative_path') + '/login'); + res.redirect(nconf.get('relative_path') + '/login?local=1'); } }, ], next);