mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
fix redirects
This commit is contained in:
@@ -49,7 +49,7 @@ helpers.redirect = function(res, url) {
|
||||
if (res.locals.isAPI) {
|
||||
res.status(302).json(url);
|
||||
} else {
|
||||
res.redirect(url);
|
||||
res.redirect(nconf.get('relative_path') + url);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user