From 7bc6367d684a7ea9a6eca7df5aaab7be29eac0c6 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Wed, 24 Jul 2019 20:30:47 +0530 Subject: [PATCH] fix: update hints path to forum --- client/src/templates/Challenges/utils/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/templates/Challenges/utils/index.js b/client/src/templates/Challenges/utils/index.js index 1c41ff9c545..fd2837161dd 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) {