Reputation: 180
I have a long list of products and I want to implement paged navigation for the users to navigate better. What I want to achieve is very similar to this playground. I created a demo by slightly modifying it and changing AMP.setState for AMP.pushState to push new entries into the browser and be able to navigate back.
As long as I navigate between my 5 pages, the behavior is the expected one. But if I navigate to another url (e.g. by clicking Go to Google) and then I navigate back to the AMP again, I always end in the first page of my product list, not in the last one I was when clicking Go to Google.
Any help here would be awesome. Thanks!
Upvotes: 1
Views: 255
Reputation: 4288
That's currently not supported client-side as there's no way to change the URL in the address bar. You could implement the pagination server-side, which would solve your problem, but results in the whole page being reloaded.
I'd recommend filing a feature request on Github.
Upvotes: 1