const destination_url_without_query_encoded = encodeURI(new URL(...untrusted...).href);
const encoded_url = encodeURI(new URL(...untrusted...).href);
const html_body = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=${encoded_url}">
<title>Redirecting...</title>
<meta http-equiv="Cache-Control" content="private, no-transform, no-cache, no-store, max-age=0, s-maxage=0">
<link rel="canonical" href="${destination_url_without_query_encoded}" />
<meta name="robots" content="noindex, nofollow, notranslate, noarchive, noimageindex, nosnippet, nositelinkssearchbox, nocache, nopagereadaloud">
</head>
<body>
<h1>Redirecting...</h1>
<p>If you are not redirected automatically, please <a href="${encoded_url}">click here</a>.</p>
<script>
window.location.replace = "${encoded_url}";
</script>
</body>
</html>
`;
const destination_url_without_query_encoded = encodeURI(new URL(...untrusted...).href);
const encoded_url = encodeURI(new URL(...untrusted...).href);
const html_body = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=${encoded_url}">
<title>Redirecting...</title>
<meta http-equiv="Cache-Control" content="private, no-transform, no-cache, no-store, max-age=0, s-maxage=0">
<link rel="canonical" href="${destination_url_without_query_encoded}" />
<meta name="robots" content="noindex, nofollow, notranslate, noarchive, noimageindex, nosnippet, nositelinkssearchbox, nocache, nopagereadaloud">
</head>
<body>
<h1>Redirecting...</h1>
<p>If you are not redirected automatically, please <a href="${encoded_url}">click here</a>.</p>
<script>
window.location.replace = "${encoded_url}";
</script>
</body>
</html>
`;