We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4938269 commit 9b74c24Copy full SHA for 9b74c24
src/components/TopNav/index.js
@@ -459,10 +459,10 @@ const TopNav = ({
459
460
if (path.indexOf('/challenges') > -1) {
461
// If All Challenge page
462
- if (path.match(/challenges\/[0-9]+/)) {
+ if (path.match(/challenges\/[\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|\d{5,8}/)) {
463
// If Challenge Details page
464
setforceHideLevel3(true)
465
- forceM2 = getMenuIdsFromPath(menuWithId, '/challenges').m2
+ forceM2 = getMenuIdsFromPath(menuWithId, path).m2
466
}
467
} else if (path.indexOf('/my-dashboard') > -1 || path.indexOf('/members/' + profileHandle) > -1) {
468
// If My Dashboard and My Profile page
0 commit comments