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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user