Commit a8a8cfd5 by AlasdairSwan

Updated after Will's comments

parent 1d928379
...@@ -173,7 +173,8 @@ var edx = edx || {}; ...@@ -173,7 +173,8 @@ var edx = edx || {};
var type = $(e.currentTarget).data('type'), var type = $(e.currentTarget).data('type'),
$form = $('#' + type + '-form'), $form = $('#' + type + '-form'),
$anchor = $('#' + type + '-anchor'), $anchor = $('#' + type + '-anchor'),
queryParams = '?' + url('?'); queryParams = url('?'),
queryStr = queryParams.length > 0 ? '?' + queryParams : '';
e.preventDefault(); e.preventDefault();
...@@ -191,7 +192,7 @@ var edx = edx || {}; ...@@ -191,7 +192,7 @@ var edx = edx || {};
this.element.scrollTop( $anchor ); this.element.scrollTop( $anchor );
// Update url without reloading page // 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 ); 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