Skip to content

Bad redirection from /docs/home #3247

Description

@khinshankhan

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 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions