babel / website

:globe_with_meridians: The Babel documentation website
https://babeljs.io/docs/en/index.html
MIT License
750 stars 1.32k forks source link

New Site: redirects #1535

Closed hzoo closed 6 years ago

hzoo commented 6 years ago

We need to redirect for any changes in the url structure of the site

We already have this file: https://github.com/babel/website/blob/master/_redirects

So we just need to update it after looking at https://www.netlify.com/docs/redirects/

EDIT: we should maybe add a section about this in the 404 page? Like if you are coming from an external URL, file an issue for us to add a redirect?

ajaymathur commented 6 years ago

can I take this up?

hzoo commented 6 years ago

Yeah although not sure you know where to look for the old urls - if so it should be really easy with a glob type thing

ajaymathur commented 6 years ago

From your comment- I thought old urls are at https://github.com/babel/website/blob/master/_redirects

I can update by looking at that?

nicolo-ribaudo commented 6 years ago

https://github.com/facebook/Docusaurus/issues/248 might make this easier.

hzoo commented 6 years ago

Yeah we just need to update https://github.com/babel/website/blob/master/_redirects is all. I just mean we need to make sure it works for all the previouos urls we know about (hard to know but we can add as we learn about them too)

hzoo commented 6 years ago

Closed by https://github.com/babel/website/pull/1567 Closes https://github.com/babel/website/pull/1561