Closed (outdated)
Project:
Views Infinite Scroll
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2013 at 00:44 UTC
Updated:
27 Mar 2020 at 20:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sokrplare commentedLooks like OP cross-posted in the Github jQuery plugin issue queue (https://github.com/paulirish/infinite-scroll/issues/360) and got the below reply:
Another more generalized issue (https://github.com/paulirish/infinite-scroll/issues/506) reply:
Thankfully, the
pathParsethe OP wrote does fix things. I feel like there might be a more generalized handling case, but my JS chops are not ready on a Monday. Just adding this as a patch - since jquery.infinitescroll.js isn't officially part of the module - more for my own reference.Method to apply (roughly - read the other thread as well to get the plugin itself etc.):
Examples that break it without specifying a
pathParsefunction:?page=2?breakit#breakfragmentWith this
pathParsefunction you instead get:?page=2- now works as normal?breakit- now works, but doesn't ever add the page parameter even as it pages#breakfragment- oddly switches the fragment to be appended to the path (looks like part of the infinite-scroll plugin itself, not related to this patch paticularly maybe), then uses the page parameter as normalComment #2
honza pobořil commented