docs
docs copied to clipboard
fix: resolve docs SEO link and redirect issues
Summary
This PR cleans up docs links and redirects reported by an Ahrefs SEO audit, using plain route fixes instead of audit-code shorthand.
Internal docs links should resolve to the same locale as the page they live on, so English MDX links to /en/... directly. This matches Google's i18n guidance ("keep internal links within the same language version") and avoids redirect hops. Future locales will follow the same rule from their own MDX trees. Marketing-site links and hreflang tags are out of scope here and tracked separately.
- Rewrites internal docs links across MDX pages to include the
/en/locale prefix, so crawlers and users avoid unnecessary redirect hops from locale-less URLs. - Keeps non-page assets and root files at their canonical paths: image links remain under
/images/..., andllms.txtlinks remain/llms.txt. - Fixes a broken breadcrumb link on toolkit integration pages by rendering
Resourcesas plain breadcrumb text instead of linking to/en/resources, which does not exist. - Adds permanent redirects for old or removed docs URLs, including legacy
/home/*pages,squareuptosquare, removed toolkit pages, the old Daytona overview path, and the old nested Gmail toolkit path. - Leaves locale-less duplicate redirect rules out of
next.config.tsbecauseproxy.tsalready adds the locale prefix. That keeps the redirect config smaller and avoids hardcoding/en/in places that would need to change if additional locales become active. - Leaves the mixed-content audit rows unchanged because they are localhost example URLs that Ahrefs already marks as ignored by settings.
Validation
pnpm buildpasses locally.- Pre-commit hooks pass locally (
lint-stagedand Ultracite). - GitHub checks pass: deleted-page redirects, external URL check, LLMs.txt generation, style review, tests, schema validation, and Vercel preview.
- Toolkit integration pages such as
/en/resources/integrations/development/githubshowResourcesas breadcrumb text, not a broken link.
Expected SEO impact
- Ahrefs should report far fewer
Page has links to redirectrows after the/en/internal-link rewrite. - Ahrefs should report fewer
Page has links to broken pagerows after the breadcrumb fix and redirect additions. The remaining Cloudflare email-obfuscation rows are intentional.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| docs | Preview, Comment | May 4, 2026 4:52pm |