diff --git a/application/controllers/MigrateController.php b/application/controllers/MigrateController.php index 2b2bf0179..fc46fbe51 100644 --- a/application/controllers/MigrateController.php +++ b/application/controllers/MigrateController.php @@ -110,7 +110,7 @@ public function searchUrlAction() $newFilter = $traverseFilter($filter); if ($newFilter !== null) { - $result[] = rawurldecode($url->setFilter($newFilter)->getAbsoluteUrl()); + $result[] = rawurldecode($url->setParams([])->setFilter($newFilter)->getAbsoluteUrl()); } else { $result[] = $url->getAbsoluteUrl(); } diff --git a/library/Icingadb/Compat/UrlMigrator.php b/library/Icingadb/Compat/UrlMigrator.php index ffee88986..260cd015f 100644 --- a/library/Icingadb/Compat/UrlMigrator.php +++ b/library/Icingadb/Compat/UrlMigrator.php @@ -67,7 +67,7 @@ public static function transformUrl(Url $url): Url $filter = QueryString::parse((string) $url->getParams()); $filter = self::transformFilter($filter, $queryTransformer); if ($filter) { - $url->setFilter($filter); + $url->setParams([])->setFilter($filter); } }