-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (29 loc) · 1001 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Redirecting...</title>
<script>
// Function to detect browser language and redirect accordingly
window.onload = function() {
var userLang = navigator.language || navigator.userLanguage;
// If the language is German (starts with 'de'), redirect to /de/privacy
if (userLang.startsWith("de")) {
window.location.href = "/de/";
} else {
// Otherwise, redirect to the English page /en/privacy
window.location.href = "/en/";
}
};
</script>
</head>
<body>
<p>Redirecting you to the appropriate language version...</p>
<p>If you are not redirected, click one of these:</p>
<ul>
<li><a href="/en/">English</a></li>
<li><a href="/de/">Deutsch</a></li>
</ul>
</body>
</html>