- Issue created by @PhilY
- Status changed to Needs review
over 1 year ago 1:32pm 5 October 2023 - @phily opened merge request.
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.
Add multiple routes/paths in settings (with all other settings well set!): infinite scroll stops working.
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.
Needs review
1.0
Code