diff --git a/library/Icinga/Web/View/helpers/url.php b/library/Icinga/Web/View/helpers/url.php index 962f3cb6e..918599503 100644 --- a/library/Icinga/Web/View/helpers/url.php +++ b/library/Icinga/Web/View/helpers/url.php @@ -87,7 +87,11 @@ $this->addHelperFunction('icon', function ($img, $title = null, array $propertie $properties['class'] = 'icon'; } - return $view->img('img/icons/' . $img, $properties); + if (strpos($img, '/') === false) { + return $view->img('img/icons/' . $img, $properties); + } else { + return $view->img($img, $properties); + } } $ariaHidden = array_key_exists('aria-hidden', $properties) ? $properties['aria-hidden'] : null;