Commit 11c2bb19 by polesye

Add url redirect to.

parent 00d7760d
$(document).ajaxError(function (event, jXHR) { $(document).ajaxError(function (event, jXHR) {
if (jXHR.status === 403) { if (jXHR.status === 403) {
alert(gettext('You\'re logged out. Redirecting on login page.')); alert(gettext('You\'re logged out. Redirecting on login page.'));
window.location = '/accounts/login'; window.location.href = '/accounts/login?next=' + window.location.href;
} }
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment