Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: www redirects incorrectly strip path #2782

Closed
jaydenseric opened this issue Apr 11, 2023 · 2 comments
Closed

Docs: www redirects incorrectly strip path #2782

jaydenseric opened this issue Apr 11, 2023 · 2 comments

Comments

@jaydenseric
Copy link

Page URL: Every page of https://www.typescriptlang.org

Issue:

www redirects from https://typescriptlang.org to https://www.typescriptlang.org incorrectly strip the path from the URL. For example, https://typescriptlang.org/docs/handbook/intro.html redirects to https://www.typescriptlang.org when it used to, and should, redirect to https://www.typescriptlang.org/docs/handbook/intro.html.

This has broken many links to TypeScript documentation pages in many readmes and JSDoc comments for repos I maintain, where I always prefer to avoid pointlessly verbose www. in URLs. For example: https://github.com/jaydenseric/graphql-upload/tree/v16.0.2#requirements . Over the years I have been linking to TypeScript docs without the www. redirects worked fine; something has changed recently (not sure exactly when) about typescriptlang.org.

Recommended Fix:

Fix the typescriptlang.org redirect logic for www. so that URL paths are preserved, instead of just redirecting every URL to the homepage. This restores the old behavior that was in effect for years.

An even better solution would be to redirect https://www.typescriptlang.org to https://typescriptlang.org (preserving the URL path) for much cleaner URLs to TypeScript docs everywhere, without the bloated www..

@typescript-bot
Copy link
Collaborator

Hello! As per #2804, we are automatically closing all open issues. Please see #2804 for a description of what issues and PRs can be accepted going forward.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2023
@jaydenseric
Copy link
Author

See also #20 .

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

No branches or pull requests

2 participants