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
{{ message }}
Repository navigation
Website should redirect to /docs/getting-started.html for invalid URLs #2137
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
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).
Activity
mkonicek commentedon Jul 27, 2015
Looking into this.
[-]Website should redirect to /docs for invalid URLs[/-][+]Website should redirect to /docs/getting-started.html for invalid URLs[/+]mkonicek commentedon Jul 28, 2015
See #2145
mkonicek commentedon Jul 28, 2015
Looks like adding
404.htmldidn't fix this.zpao commentedon Jul 28, 2015
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).
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).
mkonicek commentedon Jul 28, 2015
It works now: http://facebook.github.io/react-native/docs/invalid-url.html
Thanks a lot @zpao!