The best way to control Claude Code, Codex and more from any computer or phone
fix(marketing): the noindex 404 page no longer declares hreflang (#33431)
Co-authored-by: Victor Valentine Romo <213858052+b2bvic@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Victor Valentine Romo 🌴 committed
Nov 11, 2026 at 18:11 UTC
5ba59520b636dacb0e36078700bdcf97de366b6a
1 file changed
+7
-3
apps/marketing/src/layouts/Layout.astro
+7
-3
@@ -46,7 +46,7 @@ const {
46
const currentLocale = localeInfo(locale);
47
const homeHref = localizedHref(locale, "/");
48
const downloadHref = localizedHref(locale, "/download");
49
-// English-only pages still declare themselves, so every page carries hreflang and x-default.
49
+// English-only pages still declare themselves, so every indexable page carries hreflang and x-default.
50
const alternates = localizedPath
51
? LOCALES.map((entry) => ({
52
hreflang: entry.code,
@@ -95,8 +95,12 @@ const canonicalUrl = new URL(Astro.url.pathname, Astro.site);
95
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16" />
96
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
97
<link rel="sitemap" type="application/xml" href="/sitemap.xml" />
98
- {alternates.map((entry) => <link rel="alternate" hreflang={entry.hreflang} href={entry.href} />)}
99
- <link rel="alternate" hreflang="x-default" href={defaultAlternate.href} />
98
+ {!noindex && (
99
+ <>
100
+ {alternates.map((entry) => <link rel="alternate" hreflang={entry.hreflang} href={entry.href} />)}
101
+ <link rel="alternate" hreflang="x-default" href={defaultAlternate.href} />
102
+ </>
103
+ )}
104
<title>{title}</title>
105
<script is:inline type="application/ld+json" set:html={structuredData} />
106
</head>