Skip to content

Commit

Permalink
fix: redirection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aswathy-deriv committed Feb 27, 2024
1 parent 232ab09 commit 6dcfb67
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,21 @@ const BuildPage = (page, actions) => {
isPermanent: true,
})
}
if (is_academy) {
console.log('academy')

Check warning on line 207 in gatsby-node.js

View workflow job for this annotation

GitHub Actions / ESLint

gatsby-node.js#L207

Unexpected console statement (no-console)
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 @@ -374,13 +389,21 @@ const BuildPage = (page, actions) => {
})
}
if (is_academy) {
console.log('academy')

Check warning on line 392 in gatsby-node.js

View workflow job for this annotation

GitHub Actions / ESLint

gatsby-node.js#L392

Unexpected console statement (no-console)
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 6dcfb67

Please sign in to comment.