Skip to content

Website should redirect to /docs/getting-started.html for invalid URLs #2137

Closed

Description

@mkonicek

See e.g.:

Both redirect to https://code.facebook.com/ which is a poor experience.

Redirecting to https://facebook.github.io/react-native/docs/getting-started.html would also allow us to refactor URLs - old browser bookmarks will bring people to docs.

Activity

  1. mkonicek commented on Jul 27, 2015

    @mkonicek
    ContributorAuthor

    Looking into this.

  2. changed the title [-]Website should redirect to /docs for invalid URLs[/-] [+]Website should redirect to /docs/getting-started.html for invalid URLs[/+] on Jul 28, 2015
  3. mkonicek commented on Jul 28, 2015

    @mkonicek
    ContributorAuthor

    See #2145

  4. mkonicek commented on Jul 28, 2015

    @mkonicek
    ContributorAuthor

    Looks like adding 404.html didn't fix this.

  5. zpao commented on Jul 28, 2015

    @zpao
    Contributor

    I just updated the 404 handling on facebook.github.io so this is working now (might take a few minutes for some caches to clear).

    ... would also allow us to refactor URLs - old browser bookmarks will bring people to docs.

    My suggestion here while using GitHub pages is to actually do something like #2145 and redirect old pages. In React we're using Jekyll and a plugin that lets us define the old URL in the metadata of the new file and then empty pages with meta refresh redirects are created automatically (eg, we redirect docs/index.html to getting-started https://github.com/facebook/react/blob/master/docs/docs/getting-started.md).

  6. mkonicek commented on Jul 28, 2015

    @mkonicek
    ContributorAuthor
  7. locked as resolved and limited conversation to collaborators on Jul 22, 2018
  8. added
    Resolution: Locked
    on Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: Locked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions