From 1d928379a1b26704e1b5b3649cafbee316295e1b Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Tue, 6 Jan 2015 11:16:59 -0500 Subject: [PATCH] Updated history.push to include any query params --- lms/static/js/student_account/views/AccessView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lms/static/js/student_account/views/AccessView.js b/lms/static/js/student_account/views/AccessView.js index 4796834b3a..71385a59cb 100644 --- a/lms/static/js/student_account/views/AccessView.js +++ b/lms/static/js/student_account/views/AccessView.js @@ -172,7 +172,8 @@ var edx = edx || {}; toggleForm: function( e ) { var type = $(e.currentTarget).data('type'), $form = $('#' + type + '-form'), - $anchor = $('#' + type + '-anchor'); + $anchor = $('#' + type + '-anchor'), + queryParams = '?' + url('?'); e.preventDefault(); @@ -190,7 +191,7 @@ var edx = edx || {}; this.element.scrollTop( $anchor ); // Update url without reloading page - History.pushState( null, document.title, '/account/' + type + '/' ); + History.pushState( null, document.title, '/account/' + type + queryParams ); analytics.page( 'login_and_registration', type ); },