mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
@@ -53,7 +53,7 @@ helpers.notAllowed = function (req, res, error) {
|
||||
|
||||
helpers.redirect = function (res, url) {
|
||||
if (res.locals.isAPI) {
|
||||
res.status(308).json(url);
|
||||
res.set('X-Redirect', url).status(200).json(url);
|
||||
} else {
|
||||
res.redirect(nconf.get('relative_path') + encodeURI(url));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user