location.hash is URI-encoded
This commit is contained in:
parent
8ce11ddb12
commit
de596ae408
|
@ -217,7 +217,7 @@ function spawnLocationHashTracker(ds: Ref) {
|
||||||
field hashValue: string = '/';
|
field hashValue: string = '/';
|
||||||
|
|
||||||
const loadHash = () => {
|
const loadHash = () => {
|
||||||
var h = window.location.hash;
|
var h = decodeURIComponent(window.location.hash);
|
||||||
if (h.length && h[0] === '#') {
|
if (h.length && h[0] === '#') {
|
||||||
h = h.slice(1);
|
h = h.slice(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue