v1.18.x
barisusakli 10 years ago
parent dd5a8e8a88
commit 9361ff0772

@ -124,7 +124,7 @@ $(document).ready(function() {
app.alertError('[[global:please_log_in]]');
app.previousUrl = url;
return ajaxify.go('login');
} else if (status === 302) {
} else if (status === 302 || status === 308) {
if (data.responseJSON.external) {
window.location.href = data.responseJSON.external;
} else if (typeof data.responseJSON === 'string') {

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

Loading…
Cancel
Save