api: fix redirect using req.session.next when baseUrl is not at root
This commit is contained in:
parent
4fe6d77a23
commit
1705d03683
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue