From 8c768f760ec6a5c9e84cc49321a95f77cff46c96 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 14 Jun 2023 23:31:32 +1000 Subject: [PATCH] HNS redirect: Fixed redirect with hash --- handshake.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handshake.js b/handshake.js index a49341e..20a35ba 100644 --- a/handshake.js +++ b/handshake.js @@ -1,5 +1,5 @@ if (window.location.hostname != document.currentScript.getAttribute('domain')){ - window.location.href = "https://" + document.currentScript.getAttribute('domain') + window.location.pathname; + window.location.href = "https://" + document.currentScript.getAttribute('domain') + window.location.pathname + window.location.search + window.location.hash; } else{ console.log("Already Redirected");