[icinga-checkins] icinga.org: icingaweb2/master: Ensure correct URL for the refresh container button

git at icinga.org git at icinga.org
Wed Jul 13 10:27:04 CEST 2016


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

Author: Eric Lippmann <eric.lippmann at netways.de>
Date:   Wed Jul 13 10:24:30 2016 +0200

Ensure correct URL for the refresh container button

Shifted params no longer appear in the URL which is retrieved from the request object.
We now use Url::fromRequest() instead.

---

 library/Icinga/Web/Widget/Tabs.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Icinga/Web/Widget/Tabs.php b/library/Icinga/Web/Widget/Tabs.php
index 0c4c17d..69a8fd3 100644
--- a/library/Icinga/Web/Widget/Tabs.php
+++ b/library/Icinga/Web/Widget/Tabs.php
@@ -315,7 +315,7 @@ EOT;
 
     private function renderRefreshTab()
     {
-        $url = Icinga::app()->getRequest()->getUrl();
+        $url = Url::fromRequest();
         $tab = $this->get($this->getActiveName());
 
         if ($tab !== null) {



More information about the icinga-checkins mailing list