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

This commit is contained in:
ansuz 2021-03-22 17:54:39 +05:30
parent 0dedaa34cf
commit 4762cbf491

View File

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