Skip to content

Commit

Permalink
Merge pull request #712 from nextstrain/manifest/mpox
Browse files Browse the repository at this point in the history
Add mpox as the default monkeypox URL prefix
  • Loading branch information
jameshadfield authored Sep 25, 2023
2 parents bf58f1a + c46a683 commit 2e806a5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
9 changes: 5 additions & 4 deletions data/manifest_core.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,12 @@
}
},
"measles": "",
"monkeypox": {
"mpox": {
"resolution": {
"hmpxv1": "",
"mpxv": "",
"default": "hmpxv1"
"all-clades": "",
"clade-IIb": "",
"lineage-B.1": "",
"default": "clade-IIb"
}
},
"mumps": {
Expand Down
3 changes: 2 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ const coreBuildPaths = [
"/measles",
"/mers",
"/mumps",
"/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
4 changes: 2 additions & 2 deletions static-site/src/components/Cards/coreCards.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const coreCards = [
{
img: "monkeypox.png",
url: "/monkeypox",
title: "Monkeypox"
url: "/mpox",
title: "Mpox"
},
{
img: "seasonalinfluenza.png",
Expand Down
4 changes: 2 additions & 2 deletions static-site/src/components/Cards/pathogenCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const pathogenCards = [
},
{
img: "monkeypox.png",
url: "/monkeypox",
title: "Monkeypox"
url: "/mpox",
title: "Mpox"
},
{
img: "mumps.jpg",
Expand Down

0 comments on commit 2e806a5

Please sign in to comment.