Commit a1104ceb by AlasdairSwan

Merge pull request #6464 from edx/alasdair/logistration-history-query-params-fix

Updated history.push to include any query params
parents 72bdd48f 1d928379
......@@ -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 );
},
......
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