preserve data stored in the hash when navigating to register from login

pull/1/head
ansuz 4 years ago
parent 0dedaa34cf
commit 4762cbf491

@ -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) {

Loading…
Cancel
Save