Skip to content

Bad redirection from /docs/home #3247

Open

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 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions