diff --git a/library/Icingadb/View/HostgroupGridRenderer.php b/library/Icingadb/View/HostgroupGridRenderer.php index 04cf2a28..f3823e1f 100644 --- a/library/Icingadb/View/HostgroupGridRenderer.php +++ b/library/Icingadb/View/HostgroupGridRenderer.php @@ -115,7 +115,7 @@ class HostgroupGridRenderer implements ItemRenderer } else { $link = new Link( new StateBadge(0, 'none'), - $url, + Links::hostgroup($item), [ 'title' => sprintf( $this->translate('There are no hosts in host group "%s"'), diff --git a/library/Icingadb/View/ServicegroupGridRenderer.php b/library/Icingadb/View/ServicegroupGridRenderer.php index 96a41841..cb62cbcd 100644 --- a/library/Icingadb/View/ServicegroupGridRenderer.php +++ b/library/Icingadb/View/ServicegroupGridRenderer.php @@ -205,7 +205,7 @@ class ServicegroupGridRenderer implements ItemRenderer } else { $link = new Link( new StateBadge(0, 'none'), - $url, + Links::servicegroup($item), [ 'title' => sprintf( $this->translate('There are no services in service group "%s"'),