Reputation: 193
I'm using pjax in such way:
<?php Pjax::begin([
'id' => 'clients-list',
'enablePushState' => false,
'enableReplaceState' => false,
]); ?>
And it works fine for url in browser, but replaces links for pagination in my GridView (link to action in my controller which processing ajax requests). How to avoid it?
Upvotes: 2
Views: 906
Reputation: 33548
By default, any links inside Pjax container will trigger pjax request.
To avoid it, add 'data-pjax' => 0
attribute to them, and in this case they will be ignored.
Upvotes: 2