Hi Tom,
I’ve just notified that when a user scroll through a list of posts with your implementation of InfiniteScroll and press the back button, they aren’t coming back where they were.
I tried to fix it with appending the URL (/page/2 , etc) on a page refresh using that code :
jQuery(document).ready(function($) {
var $maintain_navigation_infinite_scroll = $('#main article').first().parent();
$maintain_navigation_infinite_scroll.on('load.infiniteScroll', function(event, response, path) {
history.replaceState(null, '', path);
});
});
And it’s better because they are coming back within the same rang of posts but I wonder if it’s something you already noticed or if you have a better fix? Because my solution doesn’t always work. Sometimes you press back and it goes to the bottom of the page and you also lost the opportunity to move to higher posts.
Regards,