From 1705d036835ddfa75982397a58462a5fd34a80f6 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Tue, 14 Sep 2021 19:26:50 +0200 Subject: [PATCH] api: fix redirect using req.session.next when baseUrl is not at root --- api/src/routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/routes/auth.js b/api/src/routes/auth.js index 83ec0b5..37d5749 100644 --- a/api/src/routes/auth.js +++ b/api/src/routes/auth.js @@ -83,7 +83,7 @@ router.post( } if (req.session.next) { - res.redirect(req.session.next); + res.redirect(baseUrl + req.session.next); req.session.next = null; return; }