Problem/Motivation
On /admin/config/infinite-scroll/settings page, you can add urls/routes where to apply those settings. One url/route per line.
The explode function extracts individuals route/path but they are not cleaned enough to match actual route/path.
Steps to reproduce
Add multiple routes/paths in settings (with all other settings well set!): infinite scroll stops working.
Proposed resolution
In pager_infinite_scroll.module, line 18, change
$routes = explode(PHP_EOL, $settings['routes']);
to
$routes = array_map('trim', explode(PHP_EOL, $settings['routes']));
Patch is attached.
PS: for those coming here because of "it's not working" issue, please also note that paths should be written unaliased (like /node/xxx) and wildcards are not supported.
| Comment | File | Size | Author |
|---|---|---|---|
| pager_infinite_scroll-routes_extract_cleanup.patch | 638 bytes | phily |
Issue fork pager_infinite_scroll-3391951
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
phily