Skip to content

Commit

Permalink
Redirect /en/node/ to / (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Oct 18, 2024
1 parent fc0eed5 commit d3cb93f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions routes/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const readJSON = file => JSON.parse(fs.readFileSync(`${__dirname}${file}`))
const readCsv = file => fs.readFileSync(file).toString()
.split(/\n|\n\r/).filter(Boolean).map(row => row.split(","))

// redirect to home page (#219)
router.get("/en/node/", (req, res) => {
res.redirect("/")
})

// redirect permanently moved URLs from legacy BARTOC.org
const redirects = readJSON("../data/redirects.json")
Expand Down

0 comments on commit d3cb93f

Please sign in to comment.