diff --git a/client/src/templates/Challenges/utils/index.js b/client/src/templates/Challenges/utils/index.js index 1c41ff9c54..fd2837161d 100644 --- a/client/src/templates/Challenges/utils/index.js +++ b/client/src/templates/Challenges/utils/index.js @@ -1,7 +1,11 @@ -const guideBase = '/guide/certifications'; +const guideBase = 'https://www.freecodecamp.org/forum/search?q='; export function createGuideUrl(slug = '') { - return guideBase + slug.replace(/^\/learn\//, '/'); + return ( + guideBase + + slug.substring(slug.lastIndexOf('/') + 1) + + '%20%40camperbot%20%23guide' + ); } export function isGoodXHRStatus(status) {