Add url redirect to.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
$(document).ajaxError(function (event, jXHR) {
|
||||
if (jXHR.status === 403) {
|
||||
alert(gettext('You\'re logged out. Redirecting on login page.'));
|
||||
window.location = '/accounts/login';
|
||||
window.location.href = '/accounts/login?next=' + window.location.href;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user