You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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..
The text was updated successfully, but these errors were encountered:
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.
Page URL: Every page of https://www.typescriptlang.org
Issue:
www
redirects fromhttps://typescriptlang.org
tohttps://www.typescriptlang.org
incorrectly strip the path from the URL. For example,https://typescriptlang.org/docs/handbook/intro.html
redirects tohttps://www.typescriptlang.org
when it used to, and should, redirect tohttps://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 thewww.
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
tohttps://typescriptlang.org
(preserving the URL path) for much cleaner URLs to TypeScript docs everywhere, without the bloatedwww.
.The text was updated successfully, but these errors were encountered: