From 8d1eab20e598acfaf8faaf2577d611e6665ef5e8 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sun, 21 Aug 2022 00:41:17 -0700 Subject: [PATCH] Logout will not redirect to /login (#4420) --- webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.js b/webserver.js index bd8f6c32..03367399 100644 --- a/webserver.js +++ b/webserver.js @@ -768,7 +768,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF } // This is the default logout redirect to the login page - if (req.query.key != null) { res.redirect(domain.url + '?key=' + req.query.key); } else { res.redirect(domain.url); } + if (req.query.key != null) { res.redirect(domain.url + 'login?key=' + req.query.key); } else { res.redirect(domain.url + 'login'); } } // Return an object with 2FA type if 2-step auth can be skipped