Skip to content
Snippets Groups Projects

Fixed process of the last page by the 'page' pager type.

Open Pavlo Dovhan requested to merge issue/migrate_plus-3488331:6.0.x into 6.0.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -213,7 +213,7 @@ class Json extends DataParserPluginBase implements ContainerFactoryPluginInterfa
// Parse the url and replace the page param value and rebuild the url.
$path = UrlHelper::parse($url);
for ($page = $selector_data + 1; $page < $max; ++$page) {
for ($page = $selector_data + 1; $page <= $max; ++$page) {
$path['query'][$key] = $page;
$next_urls[] = Url::fromUri($path['path'], [
'query' => $path['query'],
Loading