Forums
Home / Plugin: Ajax Pagination and Infinite Scroll / Link/URL Change Issue
(@srjlulla)
8 years, 1 month ago
Amazing plugin.
I am using it to load single post infinitely but when next post is loaded, the URL doesn’t change in the address bar.
Kindly let me know how to make it possible.
(@malinkymedia)
Hi, In the plugin settings there is box near the bottom called Callback.
If you add the following code this will replace the URL with the one that was just loaded. Let me know how you get on.
history.pushState({}, "Next Page", url);
Thanks