Skip to content

Commit 51a18f6

Browse files
committed
Fix invalid redirect pattern
1 parent f25de7b commit 51a18f6

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/frontend/web/js/product/list

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/web/js/product/list/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ define([
118118
form, params, key, input, formKey, newPage;
119119

120120
if (currentPage > 1 && paramName === this.options.limit) {
121-
newPage = Math.floor(this.getCurrentLimit() * this.getCurrentPage() / paramValue);
121+
newPage = Math.floor(this.getCurrentLimit() * (currentPage-1) / paramValue) + 1;
122122

123123
if (newPage > 1) {
124124
paramData[this.options.page] = newPage;

0 commit comments

Comments
 (0)