SSR Redirects
There are quite a number of (permanent) redirects that need to be added for migration from JSP to React website.
redirects.ts
Introduce a file that maps all redirect paths.
-
/geo/
to/iso3166/
-
/geo/{code}
to/iso3166/{code}
Remove obsolete routes and components
- Update
src/geo/routes.ts
/explore
Note: This is complicated and I don't think we need to do it.
Add ExpressJS redirect for /*/explore
path.
It should call the backend to convert the AppliedFilters
JSON to AccessionFilter
(if possible) and return a 301 redirect to /a/{filterCode}