Skip to content

hotfix(seo): disable next-intl middleware alternate links#16774

Merged
wackerow merged 1 commit into
masterfrom
fix/disable-middleware-alternate-links
Dec 3, 2025
Merged

hotfix(seo): disable next-intl middleware alternate links#16774
wackerow merged 1 commit into
masterfrom
fix/disable-middleware-alternate-links

Conversation

@pettinarip
Copy link
Copy Markdown
Member

Description

Disables automatic hreflang alternate links generation in next-intl middleware.

Problem

The middleware was generating Link HTTP headers with hreflang alternates only for the default locale (English), while HTML <link> tags were generated for all locales via getMetadata(). This inconsistency caused SEO tools to report missing reciprocal hreflang tags.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 3, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 016bb17
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69302a792eb62a0008d9e426
😎 Deploy Preview https://deploy-preview-16774--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 43 (🔴 down 7 from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (🔴 down 7 from production)
SEO: 99 (🟢 up 8 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@wackerow wackerow merged commit 821609b into master Dec 3, 2025
10 of 11 checks passed
@wackerow wackerow deleted the fix/disable-middleware-alternate-links branch December 3, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants