Answer the question
In order to leave comments, you need to log in
How to make friends Yii pager and browser back button?
There is a main from it when loading an ajax request (let's say on site / else) for lazy loading. Works well. But there is a bug. We go to page 2, on it clicks "back" in the browser, the main page is loaded and ajax goes, but not to site/else, but to site/else?page=2.
Any idea why? Is the pager's data cached, and if so, how to reset it?
Answer the question
In order to leave comments, you need to log in
Problem solved, thanks everyone. There was a hiddeninput in which the page number was written and when going back it remained old, but it was necessary to reset it. Thanks to everyone who read and didn't reply.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question