~patrickhaussmann/doi.app.5ls.de

3f0891cc9690c2ff539cf211fd4635ff954be68f — patrickhaussmann 2 years ago b4d0f80
Fix use hash instead of path
1 files changed, 2 insertions(+), 2 deletions(-)

M index.html
M index.html => index.html +2 -2
@@ 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;
      }