GridView with Pjax for table, but not for pagination

Can I somehow configure a gridview widget so that the table is updated using Pjax, but pagination links are normal links without Pjax?

set data-pjax to 0 for your pagination links here as an example

<?php Pjax::begin() ?>

<?= GridView::widget([

    'dataProvider' => $dataProvider,

    'pager' => [

        'linkOptions' => [

            'data-pjax' => 0



    'columns' => [

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


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


]); ?>

<?php Pjax::end() ?>

Many thanks!

However, it works in a strange way. After first pjax request the pagination links get spoiled. Say, the pagination links are:




I make pjax request to URL: /admin/update?id=100

After this, pagination links become:



Obviously, I need the pagination to remain the same.

UPD. As a workaround I disabled GridView’s pagination and implemented a separate paginator using yii\data\Pagination;