Grid filter URL change?

Hi everyone,

I have never been developing in Yii2. I’d like to know if there is (probably there is) a way to stop changing the URL while using filter (Yii2 grid)?




<?php \yii\widgets\Pjax::begin(); ?>

    <?= GridView::widget([

        'dataProvider' => $dataProvider,

        'filterModel' => $searchModel,

        'columns' => [

            [

				'class' => 'yii\grid\SerialColumn',

 

            ],

            

            // Data columns




			[

				'class' => 'yii\grid\DataColumn',

				'attribute' => "some_field",

					

			],

			

			[

				'class' => 'yii\grid\ActionColumn',

				'header' => 'Update or delete',

				'headerOptions' => ['width'=>100],

				'contentOptions' => ['style' => 'text-align:center;'],

				'template'=>'{update} {delete}',

            ],

        ],

    ]); ?>

	<?php \yii\widgets\Pjax::end(); ?>



Everything is fine except URL change. I would like to avoid it. It looks really ugly.

I think you need to disable push state and replace state in the Pjax widget.