diff --git a/themes/gatsby-theme-deriv/gatsby-node.js b/themes/gatsby-theme-deriv/gatsby-node.js index 4c56362..cdc7c14 100644 --- a/themes/gatsby-theme-deriv/gatsby-node.js +++ b/themes/gatsby-theme-deriv/gatsby-node.js @@ -48,6 +48,7 @@ const BuildPage = (page, actions, region) => { const who_we_are = /who-we-are/g.test(page.path) const is_cfds = /cfds/g.test(page.path) const is_options = /options/g.test(page.path) + const is_academy_signup = /academy-signup/g.test(page.path); if (is_careers) { createRedirect({ @@ -372,6 +373,15 @@ const BuildPage = (page, actions, region) => { }) } + if (is_academy_signup) { + createRedirect({ + fromPath: `/${lang}/academy-signup/`, + toPath: `/academy-signup/`, + redirectInBrowser: true, + isPermanent: true, + }); + lang = 'EN'; + } return current_page }) }