From 56050dd04bc55cd2c5d45ca156aca8ae25e1b442 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 1 Sep 2025 09:32:35 +0200 Subject: [PATCH] events: Pass filters to urls using `Url::setFilter()` A small change I found in my stash. --- application/controllers/EventsController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/controllers/EventsController.php b/application/controllers/EventsController.php index 336bc3f31..b5a26dfdf 100644 --- a/application/controllers/EventsController.php +++ b/application/controllers/EventsController.php @@ -83,8 +83,9 @@ public function indexAction(): void $this->addControl($limitControl); $this->addControl($searchBar); - $url = Url::fromRequest()->onlyWith($preserveParams); - $url->setQueryString(QueryString::render($filter) . '&' . $url->getParams()->toString()); + $url = Url::fromRequest() + ->onlyWith($preserveParams) + ->setFilter($filter); $eventList = (new LoadMoreObjectList($events->execute())) ->setPageSize($limitControl->getLimit())