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

Updated history.push to include any query params
This commit is contained in:
AlasdairSwan
2015-01-06 11:40:18 -05:00

View File

@@ -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 );
},