mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #2592
This commit is contained in:
@@ -38,11 +38,15 @@ $(document).ready(function() {
|
||||
app.previousUrl = url;
|
||||
return ajaxify.go('login');
|
||||
} else if (status === 302) {
|
||||
if (!ajaxify.go(data.responseJSON.path, callback, quiet)) {
|
||||
window.location.href = data.responseJSON.path;
|
||||
if (data.responseJSON.path) {
|
||||
if (!ajaxify.go(data.responseJSON.path, callback, quiet)) {
|
||||
window.location.href = data.responseJSON.path;
|
||||
}
|
||||
} else if (data.responseJSON) {
|
||||
ajaxify.go(data.responseJSON.slice(1), callback, quiet);
|
||||
}
|
||||
}
|
||||
} else if (textStatus !== "abort") {
|
||||
} else if (textStatus !== 'abort') {
|
||||
app.alertError(data.responseJSON.error);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user