diff --git a/library/Icinga/Web/Widget/Tabs.php b/library/Icinga/Web/Widget/Tabs.php index aa5e7cda6..6b38f9096 100644 --- a/library/Icinga/Web/Widget/Tabs.php +++ b/library/Icinga/Web/Widget/Tabs.php @@ -309,13 +309,14 @@ EOT; private function renderRefreshTab() { - $url = Url::fromRequest()->without('renderLayout'); $tab = $this->get($this->getActiveName()); - if ($tab !== null) { + $url = Url::fromRequest($tab->getUrl()->getParams()->toArray(false))->without('renderLayout'); $label = $this->view()->escape( $tab->getLabel() ); + } else { + $url = Url::fromRequest()->without('renderLayout'); } if (! empty($label)) {