Skip to content

fix: redirect legacy docs home URLs to docs root#3575

Open
EduardF1 wants to merge 1 commit into
microsoft:v2from
EduardF1:fix/docs-home-redirect
Open

fix: redirect legacy docs home URLs to docs root#3575
EduardF1 wants to merge 1 commit into
microsoft:v2from
EduardF1:fix/docs-home-redirect

Conversation

@EduardF1

Copy link
Copy Markdown

Summary

Fixes #3247

Changes

  • redirect /docs/home.html directly to /docs/
  • redirect /docs/home directly to /docs/
  • remove the intermediate hop that currently points legacy docs-home URLs at a broken route

Testing

  • ran pnpm exec prettier --check packages/typescriptlang-org/src/redirects/setupRedirects.ts
  • ran git diff --check
  • confirmed the redirect table now sends both legacy URLs to /docs/

@EduardF1 EduardF1 force-pushed the fix/docs-home-redirect branch from a21fb64 to 75bb2e4 Compare June 4, 2026 00:07
@EduardF1

EduardF1 commented Jun 4, 2026

Copy link
Copy Markdown
Author

Friendly ping — CI checks passed. Let me know if there's anything you need changed here!

@EduardF1

Copy link
Copy Markdown
Author

Friendly follow-up with the validation details to make review quick:

  • This collapses a chained redirect. Today /docs/home.html/docs/home/docs is two hops; the PR makes both legacy URLs redirect in a single hop to the docs root.
  • The target /docs/ matches the dominant convention for docs-root redirect targets already in setupRedirects.ts — e.g. /docs/tutorial.html, /docs/bootstrap, /docs/handbook/release-notes, and /docs/handbook/release-notes/overview all redirect to /docs/.

CLA check is green and the PR is mergeable with no conflicts against v2. Let me know if you'd prefer the trailing-slash-less /docs form for consistency with the older veryOldRedirects entries instead — easy one-line change either way.

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.

Bad redirection from /docs/home

1 participant