diff --git a/framework/grid/GridView.php b/framework/grid/GridView.php index 9f04031696..af37be9ee2 100644 --- a/framework/grid/GridView.php +++ b/framework/grid/GridView.php @@ -219,7 +219,7 @@ class GridView extends BaseListView */ protected function getClientOptions() { - $filterUrl = isset($this->filterUrl) ? $this->filterUrl : [Yii::$app->controller->action->id] + Yii::$app->controller->actionParams; + $filterUrl = isset($this->filterUrl) ? $this->filterUrl : Yii::$app->request->url; $id = $this->filterRowOptions['id']; $filterSelector = "#$id input, #$id select"; if (isset($this->filterSelector)) {