location.hash is URI-encoded

This commit is contained in:
Tony Garnock-Jones 2024-03-28 12:36:28 +01:00
parent 8ce11ddb12
commit de596ae408
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ function spawnLocationHashTracker(ds: Ref) {
field hashValue: string = '/';
const loadHash = () => {
var h = window.location.hash;
var h = decodeURIComponent(window.location.hash);
if (h.length && h[0] === '#') {
h = h.slice(1);
}