From ba4dd255ec69a8e579f2c198c332e6f65e3e406b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 16 Jun 2015 16:02:32 +0200 Subject: [PATCH] Tabs: Merge the action's params into the current request url's params --- library/Icinga/Web/Widget/Tabs.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)) {