nextstrain / nextstrain.org

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

[indexer] incorrect redirect behaviour #784

Closed jameshadfield closed 4 months ago

jameshadfield commented 5 months ago

Current Behavior

The URL ncov/global redirects to ncov/gisaid/global/6m however the files for ncov_global.json are indexed as their own dataset instead of being grouped with ncov/gisaid/global/6m.

Expected behavior

Indexer dataset name resolution should match server URL resolution (redirect) behaviour

What's going on?

https://github.com/nextstrain/nextstrain.org/blob/2ab05981d13919883e277a3c1f68474541297165/src/redirects.js#L25-L40

Note that there may be other URLs with similar behaviour - the rediects.js has many edge cases.