Server redirect: Accession by ID to UUID
The original website used accession id
to access accession details (https://www.genesys-pgr.org/acn/id/158948). The new website uses accession's uuid
(https://beta.genesys-pgr.org/a/f8f3bd9f-2c49-4efe-94e4-8db6fdfd010a).
Add a handler that will do a server-side permanent HTTP redirect to the UUID version of the route when id-route is used.
If there is no accession by id
, then return SSR 404
.
Other redirects
The redirect above is more complicated because accession data must first be retrieved to find the uuid
.
Add these simple route redirects:
- https://www.genesys-pgr.org/geo/USA -> /iso3166/USA