Use a custom header instead
This commit is contained in:
Peter Jaszkowiak
2017-06-30 23:38:31 -06:00
parent 02c679d5c9
commit 6cb8440715
3 changed files with 13 additions and 3 deletions

View File

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