From c6ee0c076396b071af9e082b356b6e92dcaba5dd Mon Sep 17 00:00:00 2001 From: James Hadfield Date: Mon, 25 Sep 2023 13:51:05 +1300 Subject: [PATCH] Add mpox as the default monkeypox URL prefix The original /monkeypox/* URLs are left unchanged however we can remove these and add redirects instead if we wish to. Card names are updated to 'mpox' as per WHO recommendations Context (slack): --- data/manifest_core.json | 8 ++++++++ src/app.js | 1 + static-site/src/components/Cards/coreCards.js | 4 ++-- static-site/src/components/Cards/pathogenCards.js | 4 ++-- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/data/manifest_core.json b/data/manifest_core.json index 5ccac7e59..8349f89fa 100644 --- a/data/manifest_core.json +++ b/data/manifest_core.json @@ -201,6 +201,14 @@ "default": "hmpxv1" } }, + "mpox": { + "resolution": { + "all-clades": "", + "clade-IIb": "", + "lineage-B.1": "", + "default": "clade-IIb" + } + }, "mumps": { "resolution": { "na": "", diff --git a/src/app.js b/src/app.js index f6cb4aa5d..9107d1d8e 100644 --- a/src/app.js +++ b/src/app.js @@ -192,6 +192,7 @@ const coreBuildPaths = [ "/mers", "/mumps", "/monkeypox", + "/mpox", // Prior to Sept 2023 we used /monkeypox/ "/ncov", "/nextclade", "/rsv", diff --git a/static-site/src/components/Cards/coreCards.js b/static-site/src/components/Cards/coreCards.js index f6500f8ed..cc32c7689 100644 --- a/static-site/src/components/Cards/coreCards.js +++ b/static-site/src/components/Cards/coreCards.js @@ -1,8 +1,8 @@ const coreCards = [ { img: "monkeypox.png", - url: "/monkeypox", - title: "Monkeypox" + url: "/mpox", + title: "Mpox" }, { img: "seasonalinfluenza.png", diff --git a/static-site/src/components/Cards/pathogenCards.js b/static-site/src/components/Cards/pathogenCards.js index 7e1b634e4..fb0e08b44 100644 --- a/static-site/src/components/Cards/pathogenCards.js +++ b/static-site/src/components/Cards/pathogenCards.js @@ -26,8 +26,8 @@ const pathogenCards = [ }, { img: "monkeypox.png", - url: "/monkeypox", - title: "Monkeypox" + url: "/mpox", + title: "Mpox" }, { img: "mumps.jpg",