HNS redirect: Fixed redirect with hash

This commit is contained in:
Nathan Woodburn 2023-06-14 23:31:32 +10:00
parent 0d48c37d4f
commit 8c768f760e
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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");