From 72b09e9884cba2d8f17a944db83ae653b04cfea6 Mon Sep 17 00:00:00 2001 From: Agrim Jain <157685219+agrim-deriv@users.noreply.github.com> Date: Wed, 12 Jun 2024 08:54:32 +0400 Subject: [PATCH] Agrim/DPROD-1136/ learn more traders hub (#7783) * fix: learn more issue mongolian * fix: empty commit * fix: mn path --- themes/gatsby-theme-deriv/gatsby-node.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/themes/gatsby-theme-deriv/gatsby-node.js b/themes/gatsby-theme-deriv/gatsby-node.js index 4c563623f05..1d3f74a999a 100644 --- a/themes/gatsby-theme-deriv/gatsby-node.js +++ b/themes/gatsby-theme-deriv/gatsby-node.js @@ -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) {