|
@@ -331,7 +331,12 @@ trait HasQuickSearch
|
|
|
protected function addQuickSearchScript()
|
|
|
{
|
|
|
if ($this->isAsyncRequest()) {
|
|
|
- $url = Helper::fullUrlWithoutQuery(['_pjax']);
|
|
|
+ $url = Helper::fullUrlWithoutQuery([
|
|
|
+ '_pjax',
|
|
|
+ $this->quickSearch->getQueryName(),
|
|
|
+ static::ASYNC_NAME,
|
|
|
+ $this->model()->getPageName(),
|
|
|
+ ]);
|
|
|
|
|
|
Admin::script("$('.quick-search-form').attr('action', '{$url}');", true);
|
|
|
}
|