From a8aced9bba6984776c1a555c8bbec6f4fdbdcfb4 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Mon, 24 Sep 2012 09:15:06 -0400 Subject: [PATCH] Also make the actual ?next redirection work with caching - use js instead of django to do the redirection --- lms/djangoapps/courseware/views.py | 3 --- lms/envs/common.py | 1 + lms/templates/index.html | 1 - lms/templates/login_modal.html | 10 +++++----- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lms/djangoapps/courseware/views.py b/lms/djangoapps/courseware/views.py index eba45e373a..d5b7ae0893 100644 --- a/lms/djangoapps/courseware/views.py +++ b/lms/djangoapps/courseware/views.py @@ -430,9 +430,6 @@ def university_profile(request, org_id): context = dict(courses=courses, org_id=org_id) template_file = "university_profile/{0}.html".format(org_id).lower() - if request.REQUEST.get('next', False): - context['show_login_immediately'] = True - return render_to_response(template_file, context) def render_notifications(request, course, notifications): diff --git a/lms/envs/common.py b/lms/envs/common.py index 4681f5fd9a..f60c8ea5b0 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -525,6 +525,7 @@ PIPELINE_JS = { 'js/my_courses_dropdown.js', 'js/toggle_login_modal.js', 'js/sticky_filter.js', + 'js/query-params.js', ], 'output_filename': 'js/lms-application.js' }, diff --git a/lms/templates/index.html b/lms/templates/index.html index 89b4d06eab..fc6f1f336b 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -147,7 +147,6 @@ <%block name="js_extra"> -