fix(landing): use instant meta refresh instead of Astro.redirect

The Astro.redirect() generates a visible "Redirecting from / to /zh/"
message before navigating. Replace with a meta http-equiv refresh for
an instant, invisible redirect from root to the default locale.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
zhukang
2026-03-15 10:39:12 +08:00
parent be949a22b5
commit c2e2e924f6

View File

@@ -1,4 +1,14 @@
---
// Root redirects to default locale /zh/
return Astro.redirect('/zh/', 302);
// Root redirects to default locale /zh/ instantly
---
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="0;url=/zh/" />
<link rel="canonical" href="/zh/" />
<title>Atlas for Mac</title>
</head>
<body></body>
</html>