Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ function parseRequestParameters() {
* This is needed because we can't respond with HTTP redirect codes.
*/
function generateRedirectPage(url: string) {
return `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=${url}"></head></html>`;
return (
'<!DOCTYPE html>' +
'<html>' +
`<head><meta http-equiv="refresh" content="0;url=${url}"></head>` +
`<body>If your browser does not redirect you immediately, <a href="${url}">click here</a></body>` +
'</html>'
);
}

export function main() {
Expand Down
6 changes: 5 additions & 1 deletion release/relay/relay_Philter_Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,11 @@ function parseRequestParameters() {
* This is needed because we can't respond with HTTP redirect codes.
*/
function generateRedirectPage(url) {
return "<!DOCTYPE html><html><head><meta http-equiv=\"refresh\" content=\"0;url=" + url + "\"></head></html>";
return ('<!DOCTYPE html>' +
'<html>' +
("<head><meta http-equiv=\"refresh\" content=\"0;url=" + url + "\"></head>") +
("<body>If your browser does not redirect you immediately, <a href=\"" + url + "\">click here</a></body>") +
'</html>');
}
function main() {
// TODO: Add require() to kolmafia-types if possible
Expand Down