From a4249539eca01daa5b1318c066fc66df06f888a6 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 20 Nov 2017 13:35:17 +0100 Subject: [PATCH] Fix acknowledge URL of announcements --- application/forms/Announcement/AcknowledgeAnnouncementForm.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/forms/Announcement/AcknowledgeAnnouncementForm.php b/application/forms/Announcement/AcknowledgeAnnouncementForm.php index cdc76d652..4dce5df7a 100644 --- a/application/forms/Announcement/AcknowledgeAnnouncementForm.php +++ b/application/forms/Announcement/AcknowledgeAnnouncementForm.php @@ -7,6 +7,7 @@ use Icinga\Data\Filter\Filter; use Icinga\Web\Announcement\AnnouncementCookie; use Icinga\Web\Announcement\AnnouncementIniRepository; use Icinga\Web\Form; +use Icinga\Web\Url; class AcknowledgeAnnouncementForm extends Form { @@ -15,7 +16,7 @@ class AcknowledgeAnnouncementForm extends Form */ public function init() { - $this->setAction('announcements/acknowledge'); + $this->setAction(Url::fromPath('announcements/acknowledge')); $this->setAttrib('class', 'form-inline acknowledge-announcement-control'); $this->setRedirectUrl('layout/announcements'); }