Fix encoded hashes

This commit is contained in:
Will Scullin 2021-09-30 19:51:30 -07:00
parent f5a7656ded
commit 6d12cd4a93

View File

@ -844,7 +844,8 @@ function gup(name: string) {
/** Returns the URL fragment. */
function hup() {
const regex = new RegExp('#(.*)');
const results = regex.exec(window.location.hash);
const hash = decodeURIComponent(window.location.hash);
const results = regex.exec(hash);
if (!results)
return '';
else