From 185ccd572d6ef376c25480a0482980b69e8e9608 Mon Sep 17 00:00:00 2001 From: Thabo Date: Fri, 14 Aug 2015 16:24:54 -0700 Subject: [PATCH] use encodeURIComponent rather than escape --- src/js/init-header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/init-header.js b/src/js/init-header.js index 62da75ca..58237fe8 100644 --- a/src/js/init-header.js +++ b/src/js/init-header.js @@ -345,7 +345,7 @@ if (!loginState) { }); $('.actionLogin').on('click', function () { - window.location.href = "/login?next=" + escape(window.location.href); + window.location.href = "/login?next=" + encodeURIComponent(window.location.href); }); $('.closeModal,#bgModal').not('.redirectOnConfirm').on('click', function () { @@ -1268,7 +1268,7 @@ function initMemberDetails(pagePersisted){ $('.headerTopRightMenuLink.logIn a').unbind('click'); $('.headerTopRightMenuLink.logIn a').text("Log In").removeClass("actionLogout").addClass("actionLogin"); $('.actionLogin').on('click', function() { - window.location.href = "/login?next=" + escape(window.location.href); + window.location.href = "/login?next=" + encodeURIComponent(window.location.href); }); $('.loginLink, .linkLogin, .btnRegister, .signUp a.btn').addClass('show').show(); $('.btnRegister').parent('.sign-up').show();