diff --git a/packages/html2/src/index.ts b/packages/html2/src/index.ts index 4c19e4f..5a746b8 100644 --- a/packages/html2/src/index.ts +++ b/packages/html2/src/index.ts @@ -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); }