Answer the question
In order to leave comments, you need to log in
How to follow a pjax wrapped link without updating the block?
In a YII2 project, I use PJAX to update a block. Accordingly, there are links when you click on which this block is updated.
But there are links that lead to other pages. But, when you click on these links, first the page is reloaded, and then only follows the link.
As I understand it, PJAX works first, and then only following the link.
How to solve this problem? So that when you click on certain links, PJAX is ignored and the transition to the desired page is immediately made
Answer the question
In order to leave comments, you need to log in
I found the solution myself. I wrote the question longer than I was looking for)
Insert the parameter "'data-pjax' => '0'" into the link properties
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question