Bad redirection from `/docs/home`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- web-dev
Research direction
Inspect packages/typescriptlang-org/src/redirects/setupRedirects.ts and reproduce the redirects from /docs/home.html and /docs/home. Compare the existing veryOldRedirects entries with the proposed mappings. Done means these legacy URLs reach /docs/ without an infinite redirect or loading loop.
Written by the indexing model from the issue text.
Description
Page URL: https://www.typescriptlang.org/docs/home
Issue: I came across the link https://www.typescriptlang.org/docs/home.html which redirected to /docs/home however this has an infinite redirection/ loading issue.
I think a simple fix would be change the veryOldRedirects in packages/typescriptlang-org/src/redirects/setupRedirects.ts to be
const veryOldRedirects = {
Playground: "/play/",
Tutorial: "/docs",
Handbook: "/docs",
samples: "/docs",
"/docs/home.html": "/docs/",
"/playground": "/play/",
"/docs/home": "/docs/",
}
but I'm not fully sure why /docs/home is broken to begin with. It seems to work locally, but the current veryOldRedirects also seems to work locally 🤷
- Dominant language
- TypeScript
- Stars
- 2.6k
- Forks
- 1.5k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 8
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/TypeScript-Website
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
microsoft/TypeScript-Website#3611 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/TypeScript-Website#3607 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
microsoft/TypeScript-Website#3039 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/TypeScript-Website#2998 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
microsoft/TypeScript-Website#3614 ·
All issues in microsoft/TypeScript-Website
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·