From 3f0891cc9690c2ff539cf211fd4635ff954be68f Mon Sep 17 00:00:00 2001 From: patrickhaussmann Date: Thu, 31 Mar 2022 18:04:14 +0200 Subject: [PATCH] Fix use hash instead of path --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 9a06da4..788f67a 100644 --- a/index.html +++ b/index.html @@ -119,7 +119,7 @@ "/" + doi; - window.history.replaceState({}, document.title, "/" + doi); + location.hash = doi } else { document.body.classList.add("invalid"); a_doi.href = "javascript:void(0)"; @@ -131,7 +131,7 @@ input.addEventListener("input", updateLinks, false); - var URLParameter = location.pathname.substring(1); + var URLParameter = location.hash.substring(1); if (URLParameter) { input.innerText = URLParameter; } -- 2.45.2