removed legacy remember me redirect

This commit is contained in:
Gani Georgiev
2026-05-26 18:22:17 +03:00
parent d4026ce60f
commit 97b85334a9
10 changed files with 91 additions and 116 deletions
-23
View File
@@ -1,7 +1,5 @@
const DEFAULT_RANDOM_ALPHABET = "abcdefghijklmnopqrstuvwxyz0123456789";
const REMEMBER_PATH_KEY = "pb_redirect";
const navigationStore = store({
hash: window.location.hash,
});
@@ -1008,27 +1006,6 @@ const utils = {
return newHref;
},
/**
* Locally stores the current path for later redirect.
*/
rememberPath() {
window.localStorage.setItem(REMEMBER_PATH_KEY, window.location.hash);
},
/**
* Redirect to a remembered local path.
*
* @param {string} [fallback] Fallback path if there is nothing stored.
*/
toRememberedPath(fallback = "#/collections") {
let path = window.localStorage.getItem(REMEMBER_PATH_KEY);
if (path) {
window.localStorage.removeItem(REMEMBER_PATH_KEY);
}
window.location.hash = path || fallback;
},
/**
* Returns and deserializes a localStorage stored JSON value.
*