Module: check_mk
Branch: master
Commit: 2a08d39f20de61eac23464d973c2561c0b2fa513
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2a08d39f20de61…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Jun 19 16:13:42 2016 +0200
Small fix for internal helper render_main_menu()
now detects URLs instead of modes more precisely
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 04f6316..1d5d739 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5666,7 +5666,7 @@ def render_main_menu(some_modules, columns = 2):
if not config.may(permission) and not config.may("wato.seeall"):
continue
- if '?' in mode_or_url or '/' in mode_or_url:
+ if '?' in mode_or_url or '/' in mode_or_url or
mode_or_url.endswith(".py"):
url = mode_or_url
else:
url = folder_preserving_link([("mode", mode_or_url)])