From 4762cbf491fcfcabda4dadc750047bf6b68d9636 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 22 Mar 2021 17:54:39 +0530 Subject: [PATCH] preserve data stored in the hash when navigating to register from login --- www/login/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {