JS: Don't activate a menu item if only a part of the current URL matches
Else, navigating to user -> preferences -> navigation activates configuration -> shared navigation for example.
This commit is contained in:
parent
edcc698e1e
commit
5b898d5f3b
|
@ -159,12 +159,6 @@
|
|||
if (! this.active) {
|
||||
this.setActive($('#menu [href="' + this.icinga.utils.parseUrl(url).path + '"]').first());
|
||||
}
|
||||
|
||||
// if no item with the base action exists, activate the first URL that beings with the base path
|
||||
// but may have different filters
|
||||
if (! this.active) {
|
||||
this.setActive($('#menu [href^="' + this.icinga.utils.parseUrl(url).path + '"]').first());
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue