Answer the question
In order to leave comments, you need to log in
Link not working after pjax?
Hello!
The page has a GridView wrapped in pjax with filters.
A link has been added to each entry:
<?= GridView::widget([
'dataProvider' => $dataProvider,
'rowOptions' => function ($model, $key, $index, $grid) {
return [
'data-pjax' => 0,
'data-method' => 'post',
'data-url' => Url::to(['test', 'result_id' => $model->id]),
];
},
Answer the question
In order to leave comments, you need to log in
With 'data-method' => 'post' js is generated that intercepts the click. Try get, since post is clearly not a link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question