api: fix redirect using req.session.next when baseUrl is not at root

This commit is contained in:
Paul Bienkowski 2021-09-14 19:26:50 +02:00
parent 4fe6d77a23
commit 1705d03683

View file

@ -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;
}