From 1c3bb417cc9fda409f5b4e0cb09d27b204583272 Mon Sep 17 00:00:00 2001 From: foxster-mp4 Date: Sun, 30 Apr 2023 11:27:51 -0700 Subject: [PATCH] Actually fix wrong URLs --- js/search.js | 7 +------ search.html | 10 +++++----- 2 files changed, 6 insertions(+), 11 deletions(-) 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 @@

Suggested

- +
Foxster's AltSource
- +
Qn_'s AltStore Repo
- +
UTM Repository
- +
Flyinghead
- +
Provenance EMU