Summary: The redirects we added inline in the deleted pages don't work when there's a baseUrl. This is because it's the standard react-router Redirect component, which knows nothing about docusaurus sites. We could get around that by adding `useBaseUrl()` calls around all of them, but that's not great. So changing to using declarative redirects instead, where they are all put in config. This automatically takes care of base urls, and reduces copy-pasted code. Reviewed By: passy Differential Revision: D25780599 fbshipit-source-id: c67d3643ab28f0fcd440904baf54c67687781686
7.6 KiB
7.6 KiB