Skip to content

Commit

Permalink
fix: translations issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aswathy-deriv committed Feb 28, 2024
1 parent ad2b109 commit 4f3725d
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const BuildPage = (page, actions) => {
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 = /academy-signup/g.test(page.path)

if (is_careers) {
createRedirect({
Expand Down Expand Up @@ -203,21 +202,6 @@ const BuildPage = (page, actions) => {
isPermanent: true,
})
}
if (is_academy) {
console.log('academy')
createRedirect({
fromPath: `/academy-signup/`,
toPath: `/en/academy-signup/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/academy-signup`,
toPath: `/en/academy-signup`,
redirectInBrowser: true,
isPermanent: true,
})
}

const is_english = process.env.GATSBY_LANGUAGE === 'en'

Expand Down Expand Up @@ -388,21 +372,6 @@ const BuildPage = (page, actions) => {
isPermanent: true,
})
}
if (is_academy) {
console.log('academy')
createRedirect({
fromPath: `/${lang}/academy-signup/`,
toPath: `/en/academy-signup/`,
redirectInBrowser: true,
isPermanent: true,
})
createRedirect({
fromPath: `/${lang}/academy-signup`,
toPath: `/en/academy-signup`,
redirectInBrowser: true,
isPermanent: true,
})
}

return current_page
})
Expand Down

0 comments on commit 4f3725d

Please sign in to comment.