mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
preserve data stored in the hash when navigating to register from login
This commit is contained in:
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…
Reference in New Issue
Block a user