[icinga-checkins] icinga.org: icingaweb2/master: NavigationItemRenderer: Ignore target for ' #' urls

git at icinga.org git at icinga.org
Mon Feb 22 11:14:01 CET 2016


Module: icingaweb2
Branch: master
Commit: c7443924bd94a08952369ecc635e2653e40defeb
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=c7443924bd94a08952369ecc635e2653e40defeb

Author: Johannes Meyer <johannes.meyer at netways.de>
Date:   Mon Feb 22 11:13:23 2016 +0100

NavigationItemRenderer: Ignore target for '#' urls

fixes #11197

---

 library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
index 09e202c..e5866bc 100644
--- a/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
+++ b/library/Icinga/Web/Navigation/Renderer/NavigationItemRenderer.php
@@ -218,7 +218,7 @@ class NavigationItemRenderer
     protected function renderTargetAttribute()
     {
         $target = $this->getItem()->getTarget();
-        if ($target === null) {
+        if ($target === null || $this->getItem()->getUrl()->getAbsoluteUrl() == '#') {
             return '';
         }
 



More information about the icinga-checkins mailing list