Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
chore: add route change
Browse files Browse the repository at this point in the history
  • Loading branch information
habib-deriv committed Jun 14, 2024
1 parent 60cf6c1 commit e65a813
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions themes/gatsby-theme-deriv/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,19 @@ const BuildPage = (page, actions, region) => {
redirectInBrowser: true,
isPermanent: true,
})
const mn_path = `/mn${localized_path.slice(0, -1)}`
createRedirect({
fromPath: mn_path,
toPath: localized_path,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `${mn_path}/`,
toPath: localized_path,
redirectInBrowser: true,
isPermanent: true,
})
}

if (is_responsible_trading) {
Expand Down

0 comments on commit e65a813

Please sign in to comment.