We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6548d3c commit 96e2cc0Copy full SHA for 96e2cc0
app/code/Magento/Theme/Block/Html/Pager.php
@@ -481,12 +481,8 @@ private function getPageLimitParams(int $limit): array
481
$data = [$this->getLimitVarName() => $limit];
482
483
$currentPage = $this->getCurrentPage();
484
- if ($currentPage === 1) {
485
- return $data;
486
- }
487
-
488
$availableCount = (int) ceil($this->getTotalNum() / $limit);
489
- if ($availableCount < $currentPage) {
+ if ($currentPage !== 1 && $availableCount < $currentPage) {
490
$data = array_merge($data, [$this->getPageVarName() => $availableCount === 1 ? null : $availableCount]);
491
}
492
0 commit comments