use beginning of location path name when checking for active items

This commit is contained in:
Jake McDermott
2018-12-17 00:03:27 -05:00
parent 3d730ef8d2
commit 1bb86dbdf0
2 changed files with 35 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ class NavExpandableGroup extends Component {
isActivePath = (path) => {
const { history } = this.props;
return history.location.pathname.includes(path);
return history.location.pathname.startsWith(path);
};
render () {