Skip to content

Commit

Permalink
redirect ncov/zh to ncov/global/zh
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshadfield committed Apr 15, 2020
1 parent 13fde87 commit cf97d05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const setup = (app) => {
return next('route');
});

/* We redirect /ncov/zh -> /ncov/global/zh here rather than the manifest file as the URL structure currently
conflates a language part ("zh") with a region ("europe") so we want to keep zh out of the manifest JSON */
app.route("/ncov/zh").get((req, res) => res.redirect("/ncov/global/zh"));

};

module.exports = {
Expand Down

0 comments on commit cf97d05

Please sign in to comment.