From a8a8cfd534883ae94b9d8a14e199a9b63a430374 Mon Sep 17 00:00:00 2001 From: AlasdairSwan Date: Tue, 6 Jan 2015 11:48:05 -0500 Subject: [PATCH] Updated after Will's comments --- 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 71385a59cb..7bcc13a4c5 100644 --- a/lms/static/js/student_account/views/AccessView.js +++ b/lms/static/js/student_account/views/AccessView.js @@ -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 ); },