Commit 9d7c90be by AlasdairSwan

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

Updated after Will's comments
parents 93a2e080 a8a8cfd5
......@@ -173,7 +173,8 @@ var edx = edx || {};
var type = $(e.currentTarget).data('type'),
$form = $('#' + type + '-form'),
$anchor = $('#' + type + '-anchor'),
queryParams = '?' + url('?');
queryParams = url('?'),
queryStr = queryParams.length > 0 ? '?' + queryParams : '';
e.preventDefault();
......@@ -191,7 +192,7 @@ var edx = edx || {};
this.element.scrollTop( $anchor );
// Update url without reloading page
History.pushState( null, document.title, '/account/' + type + queryParams );
History.pushState( null, document.title, '/account/' + type + '/' + queryStr );
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