Skip to content

Commit c57d98c

Browse files
committed
Updated page 1 to not include p1 in URL link
1 parent 5e07374 commit c57d98c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Theme/Block/Html/Pager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,9 @@ public function getLastPageUrl()
450450
*/
451451
public function getPageUrl($page)
452452
{
453-
return $this->getPagerUrl([$this->getPageVarName() => $page]);
453+
return $this->getPagerUrl([
454+
$this->getPageVarName() => $page > 1 ? $page : null,
455+
]);
454456
}
455457

456458
/**

0 commit comments

Comments
 (0)