diff --git a/src/Compat/SearchControls.php b/src/Compat/SearchControls.php index 8634e107..70b4ec8e 100644 --- a/src/Compat/SearchControls.php +++ b/src/Compat/SearchControls.php @@ -93,7 +93,7 @@ public function createSearchBar(Query $query, ...$params): SearchBar if (method_exists($this, 'searchEditorAction')) { $searchBar->setEditorUrl(Url::fromPath( "$moduleName/$controllerName/search-editor" - )->setParams($redirectUrl->getParams())); + )->setParams(clone $redirectUrl->getParams())); } $filterColumns = $this->fetchFilterColumns($query);