From 5b898d5f3bdbb336532c5338dd834222eb3e81f5 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 20 Nov 2015 09:39:53 +0100 Subject: [PATCH] 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. --- public/js/icinga/behavior/navigation.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js index cf91bc392..03611b67e 100644 --- a/public/js/icinga/behavior/navigation.js +++ b/public/js/icinga/behavior/navigation.js @@ -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()); - } }; /**