41 lines
1.3 KiB
HTML
41 lines
1.3 KiB
HTML
---
|
|
---
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Renewed Tab</title>
|
|
<script>
|
|
let locale = "en";
|
|
try {
|
|
const userLanguages = typeof navigator.languages == "object"
|
|
? navigator.languages : [ navigator.language ];
|
|
const locales = {{ site.data.languages | map: "code" | jsonify }};
|
|
locale = userLanguages.find(x => locales.includes(x)) ?? "en";
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
|
|
const url = new URL(`https://renewedtab.com/${locale}/`);
|
|
const urlParams = new URLSearchParams(window.location.search);
|
|
for (let key of urlParams.keys()) {
|
|
url.searchParams.set(key, urlParams.get(key));
|
|
}
|
|
window.location = url.toString();
|
|
</script>
|
|
<link rel="canonical" href="https://renewedtab.com/en/">
|
|
<meta http-equiv="refresh" content="0; url=https://renewedtab.com/en/">
|
|
|
|
<link rel="icon" href="/static/icon.svg">
|
|
<meta name="og:title" content="Renewed Tab" />
|
|
<meta name="og:description" content="{{ site.description }}" />
|
|
<meta name="description" content="{{ site.description }}" />
|
|
<meta name="og:url" content="{{ '/' | absolute_url }}" />
|
|
<meta name="og:image" content="{{ '/static/images/gallery/screenshot.png' | absolute_url }}" />
|
|
</head>
|
|
<body>
|
|
<h1>Redirecting…</h1>
|
|
<a href="https://renewedtab.com/en/">Click here if you are not redirected.</a>
|
|
</body>
|
|
</html>
|