Skip to content

Commit

Permalink
Redirect /monkeypox URLs to /mpox
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Sep 25, 2023
1 parent c6ee0c0 commit c46a683
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
7 changes: 0 additions & 7 deletions data/manifest_core.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,6 @@
}
},
"measles": "",
"monkeypox": {
"resolution": {
"hmpxv1": "",
"mpxv": "",
"default": "hmpxv1"
}
},
"mpox": {
"resolution": {
"all-clades": "",
Expand Down
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions src/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c46a683

Please sign in to comment.