react-router-website icon indicating copy to clipboard operation
react-router-website copied to clipboard

Cleanup redirects/route structure

Open brookslybrand opened this issue 1 year ago • 0 comments

There are a few issues related to redirects and how our routing is setup that I'd like to resolve:

  • https://reactrouter.com/blah redirects to https://reactrouter.com/blah/home and is a valid route, which is a bit silly
  • https://reactrouter.com/changelog redirects to https://reactrouter.com/changelog/home and is the incorrect route
  • https://reactrouter.com/start/changelog is the proper route, but I'd like it to be https://reactrouter.com/changelog
  • https://reactrouter.com/v6 -> https://reactrouter.com/en/6.29.0, it'd be nice if it went to https://reactrouter.com/6.29.0
  • Let's get rid of all the /en/ routes being valid routes. We can make those routes redirects.
    • It just adds more messiness to the current setup of routes/redirects
    • It makes robot/docsearch crawling have duplicate entires or need a special case to avoid the duplicates

brookslybrand avatar Feb 05 '25 16:02 brookslybrand