Skip to content

Commit 83e2b2b

Browse files
authored
Fix redirect URL and update fallback message
1 parent 69fe31a commit 83e2b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sourceRedirect.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
const path = getQueryParam('path'); // e.g., source
1818

1919
if(appName && path) {
20-
const redirectURL = `${appName}://${path}=${encodeURIComponent("https://prostore-ios.github.io/apps.json")}`;
20+
const redirectURL = `${appName}://${path}=https://prostore-ios.github.io/apps.json`;
2121
// Redirect
2222
window.location.href = redirectURL;
2323

2424
// Update manual link as fallback
25-
document.body.innerHTML = `<p>Redirecting to <strong>${redirectURL}</strong>… If nothing happens, <a href="${redirectURL}">click here</a>.</p>`;
25+
document.body.innerHTML = `<p>Redirecting...<br>If nothing happens, <a href="${redirectURL}">click here</a>.</p>`;
2626
} else {
2727
document.body.innerHTML = "<h1>Missing app or path parameter!</h1>";
2828
}

0 commit comments

Comments
 (0)