diff --git a/www/login/main.js b/www/login/main.js index 768c012a8..5023e0b19 100644 --- a/www/login/main.js +++ b/www/login/main.js @@ -70,7 +70,8 @@ define([ if ($uname.val()) { localStorage.login_user = $uname.val(); } - window.location.href = '/register/'; + var hash = (window.location.hash || '').replace(/\/login\//, '/register/'); + window.location.href = '/register/' + hash; }); Test(function (t) {