mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #3587
This commit is contained in:
@@ -39,7 +39,7 @@ helpers.notAllowed = function(req, res, error) {
|
||||
|
||||
helpers.redirect = function(res, url) {
|
||||
if (res.locals.isAPI) {
|
||||
res.status(302).json(url);
|
||||
res.status(308).json(url);
|
||||
} else {
|
||||
res.redirect(nconf.get('relative_path') + url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user