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

Commit

Permalink
fix: learn more issue mongolian
Browse files Browse the repository at this point in the history
  • Loading branch information
agrim-deriv committed Jun 11, 2024
1 parent 6e8ea4c commit ffead17
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions themes/gatsby-theme-deriv/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,20 @@ const BuildPage = (page, actions, region) => {
}

if (is_cfds) {
if(lang === 'mn'){
createRedirect({
fromPath: `/trade-types/margin/`,
toPath: `/trade-types/cfds/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/trade-types/margin`,
toPath: `/trade-types/cfds/`,
redirectInBrowser: true,
isPermanent: true,
})
}
createRedirect({
fromPath: `/${lang}/trade-types/margin/`,
toPath: `/${lang}/trade-types/cfds/`,
Expand All @@ -358,6 +372,21 @@ const BuildPage = (page, actions, region) => {
}

if (is_options) {
if(lang == 'mn'){
createRedirect({
fromPath: `/trade-types/options/`,
toPath: `/trade-types/options/digital-options/up-and-down/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/trade-types/options`,
toPath: `/trade-types/options/digital-options/up-and-down/`,
redirectInBrowser: true,
isPermanent: true,
})
}
else{
createRedirect({
fromPath: `/${lang}/trade-types/options/`,
toPath: `/${lang}/trade-types/options/digital-options/up-and-down/`,
Expand All @@ -370,6 +399,7 @@ const BuildPage = (page, actions, region) => {
redirectInBrowser: true,
isPermanent: true,
})
}
}

return current_page
Expand Down

0 comments on commit ffead17

Please sign in to comment.