Skip to content

fix(seo): use 308 (permanentRedirect) for canonical chain URLs#757

Merged
Flotapponnier merged 1 commit into
mainfrom
fix/permanent-canonical-redirect
Jun 26, 2026
Merged

fix(seo): use 308 (permanentRedirect) for canonical chain URLs#757
Flotapponnier merged 1 commit into
mainfrom
fix/permanent-canonical-redirect

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Why

PR #755 used `redirect()` which Next defaults to 307 (temporary). Google treats 307 as "URL still active" and keeps both source + target in the index. For canonical consolidation we need 308 so rank signal flows to the lowercase canonical.

Fix

Swap `redirect` → `permanentRedirect` in `[chain]/page.tsx`.

Test plan after deploy

  • `curl -I /benchmarks/perp-fees/ETH` returns 308, not 307

…anonical chain URLs

redirect() defaults to 307 which Google treats as temporary - the
source URL stays in the index competing with the target. 308 tells
Google to consolidate rank signal on the canonical lowercase URL.
@Flotapponnier
Flotapponnier merged commit c41d6d6 into main Jun 26, 2026
1 check passed
@Flotapponnier
Flotapponnier deleted the fix/permanent-canonical-redirect branch July 17, 2026 14:42
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.

1 participant