diff --git a/data/manifest_core.json b/data/manifest_core.json index 8349f89fa..c94e22ad6 100644 --- a/data/manifest_core.json +++ b/data/manifest_core.json @@ -194,13 +194,6 @@ } }, "measles": "", - "monkeypox": { - "resolution": { - "hmpxv1": "", - "mpxv": "", - "default": "hmpxv1" - } - }, "mpox": { "resolution": { "all-clades": "", diff --git a/src/app.js b/src/app.js index 9107d1d8e..ad9a953b9 100644 --- a/src/app.js +++ b/src/app.js @@ -191,8 +191,8 @@ const coreBuildPaths = [ "/measles", "/mers", "/mumps", - "/monkeypox", - "/mpox", // Prior to Sept 2023 we used /monkeypox/ + "/monkeypox", // Not actively updated, but YYYY-MM-DD URLs remain & don't redirect + "/mpox", // monkeypox URLs will redirect to /mpox (except for datestamped URLs) "/ncov", "/nextclade", "/rsv", diff --git a/src/redirects.js b/src/redirects.js index 2fae93389..058f63152 100644 --- a/src/redirects.js +++ b/src/redirects.js @@ -39,6 +39,15 @@ const setup = (app) => { }) )); + /** + * We shifted from using 'monkeypox' to 'mpox', as per WHO naming + * recommendations. Note that monkeypox YYYY-MM-DD URLs remain, + * e.g. /monkeypox/hmpxv1/2022-09-04 + */ + app.route('/monkeypox/mpxv').get((req, res) => res.redirect('/mpox/all-clades')); + app.route('/monkeypox/hmpxv1').get((req, res) => res.redirect('/mpox/clade-IIb')); + app.route('/monkeypox/hmpxv1/big').get((req, res) => res.redirect('/mpox/lineage-B.1')); + /* * Redirect to translations of narratives if the client has * set language preference and the translation is available