fix: update hints path to forum

This commit is contained in:
Mrugesh Mohapatra
2019-07-24 20:30:47 +05:30
committed by mrugesh
parent 04f18e43f6
commit 7bc6367d68

View File

@ -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) {