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

Commit

Permalink
Agrim/DPROD-1136/ learn more traders hub (#7783)
Browse files Browse the repository at this point in the history
* fix: learn more issue mongolian

* fix: empty commit

* fix: mn path
  • Loading branch information
agrim-deriv authored Jun 12, 2024
1 parent d733295 commit 72b09e9
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 72b09e9

Please sign in to comment.