Merge pull request 'Detect browser language on root and redirect to /cs/ or /en/' (#22) from master into production
All checks were successful
Deploy / deploy (push) Successful in 7s
All checks were successful
Deploy / deploy (push) Successful in 7s
Reviewed-on: #22
This commit was merged in pull request #22.
This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
---
|
---
|
||||||
return Astro.redirect('/cs/');
|
|
||||||
---
|
---
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<script is:inline>
|
||||||
|
var lang = (navigator.language || navigator.languages && navigator.languages[0] || '').toLowerCase();
|
||||||
|
window.location.replace(lang.startsWith('cs') ? '/cs/' : '/en/');
|
||||||
|
</script>
|
||||||
|
<noscript>
|
||||||
|
<meta http-equiv="refresh" content="0;url=/en/" />
|
||||||
|
</noscript>
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user