fix: resolve Ahrefs SEO audit issues (D-1 through D-3)#960
Draft
teallarson wants to merge 2 commits intomainfrom
Draft
fix: resolve Ahrefs SEO audit issues (D-1 through D-3)#960teallarson wants to merge 2 commits intomainfrom
teallarson wants to merge 2 commits intomainfrom
Conversation
- D-1: Add 163 locale-less sibling redirect rules to next.config.ts so locale-less inbound URLs (e.g. /home/auth/X) resolve in one hop instead of two (middleware locale-detection + path-restructure rule) - D-2: Rewrite internal MDX links to include /en/ locale prefix across 111 pages, eliminating 3,700+ redirect hits Ahrefs attributed to docs - D-3: Fix 383 broken-link rows — remove clickable Resources breadcrumb in toolkit pages (href="/en/resources" was 404), add redirect rules for 13 removed/renamed pages (squareup→square, home/*, toolkit pages) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…prefix The proxy.ts (renamed from middleware.ts in #752a7b54) already adds the /en/ prefix for locale-less requests. The 163 sibling rules were duplicating that work to save one hop on external inbound links. Trade-off accepted: 47 redirect chains stay 2-hop (proxy + restructure), but the diff shrinks by ~900 lines and the multi-locale story stays honest (proxy can grow Accept-Language detection later without a hardcoded /en/ destination in 163 places). Also fix collateral damage: D-2's MDX bulk rewrite mangled image paths ( → ) — revert image-syntax matches back to /images/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/en/locale prefix, eliminating ~3,700 redirect hits Ahrefs tracks against docs (image paths preserved — they don't take a locale prefix)href="/en/resources"which 404s), and added 13 redirect rules innext.config.tsfor removed/renamed pages (squareup→square, oldhome/*paths, removed toolkits, old daytona/gmail paths)proxy.tsalready adds/en/for locale-less requests, and (b) hardcoding/en/as the destination in 163 places would break if other locales ever ship. Trade-off: 47 redirect chains stay 2-hop (proxy + restructure), but the diff stays small and the multi-locale story stays honest.Test plan
pnpm buildpasses (verified locally)/en/resources/integrations/development/github) show "Resources" as plain text in breadcrumb, not a broken link🤖 Generated with Claude Code