HNS redirect: Fixed redirect with hash
This commit is contained in:
parent
0d48c37d4f
commit
8c768f760e
@ -1,5 +1,5 @@
|
|||||||
if (window.location.hostname != document.currentScript.getAttribute('domain')){
|
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{
|
else{
|
||||||
console.log("Already Redirected");
|
console.log("Already Redirected");
|
||||||
|
Loading…
Reference in New Issue
Block a user