nextstrain / nextstrain.org

The Nextstrain website
https://nextstrain.org
GNU Affero General Public License v3.0
87 stars 49 forks source link

Redirect with regex #812

Closed joverlee521 closed 2 months ago

joverlee521 commented 3 months ago

Description of proposed changes

Use path-to-regexp for dataset redirects. This allows us to use regex patterns to match datasets and redirect them to a new pattern without having to list out all of the existing paths.

Motivated by https://github.com/nextstrain/nextstrain.org/pull/811#issuecomment-2033012211

Checklist