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 9b75625 commit a4a63daCopy full SHA for a4a63da
src/components/Navigation/Navigation.jsx
@@ -171,9 +171,9 @@ export default class Navigation extends React.Component {
171
let { pageUrl = '' } = this.props;
172
173
if (section.children) {
174
- return section.children.some(child => pageUrl.includes(`${child.url}/`));
+ return section.children.some(child => { return pageUrl == '/' + child.url + '/'; });
175
176
- } else return pageUrl.includes(`${section.url}/`);
+ } else return pageUrl.includes('/' + section.url + '/', 0);
177
}
178
179
/**
0 commit comments