Skip to content

Commit

Permalink
Fix invalid redirect pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Feb 28, 2020
1 parent f25de7b commit 51a18f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ define([
form, params, key, input, formKey, newPage;

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

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

0 comments on commit 51a18f6

Please sign in to comment.