diff --git a/js/search.js b/js/search.js index 00e307a..c7b569d 100644 --- a/js/search.js +++ b/js/search.js @@ -1,10 +1,5 @@ (function main() { - const success = url => { - const host = window.location.host; - var path = window.location.pathname.split("/")[1]; - path = path?.trim === "" ? "" : `/${path}`; - window.location.replace(`${host}${path}?source=${url}` - )}; + const success = url => window.location.replace(`index.html?source=${url}`); // If valid source provided if (urlSearchParams.has('source') && isValidHTTPURL(sourceURL)) diff --git a/search.html b/search.html index cb476f7..cbbefb1 100644 --- a/search.html +++ b/search.html @@ -17,31 +17,31 @@