From 11c2bb19af0b20c83ffa97f0ce8ec7aa7b6132f0 Mon Sep 17 00:00:00 2001 From: polesye Date: Tue, 10 Jun 2014 15:09:08 +0300 Subject: [PATCH] Add url redirect to. --- lms/static/js/ajax-error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/static/js/ajax-error.js b/lms/static/js/ajax-error.js index b3a651c0dd..159ed28e20 100644 --- a/lms/static/js/ajax-error.js +++ b/lms/static/js/ajax-error.js @@ -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; } });