From e65a81327b9217c03885b14d5d4eb6fbd6cc39bb Mon Sep 17 00:00:00 2001 From: habib-deriv Date: Fri, 14 Jun 2024 14:26:33 +0800 Subject: [PATCH] chore: add route change --- 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) {