mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
use beginning of location path name when checking for active items
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user