diff --git a/view/frontend/web/js/toolbar.js b/view/frontend/web/js/toolbar.js index a623d39e..52131d26 100644 --- a/view/frontend/web/js/toolbar.js +++ b/view/frontend/web/js/toolbar.js @@ -38,7 +38,7 @@ define([ event.preventDefault(); var anchor = $(event.target).closest('a'); var page = anchor.attr('href') || ''; - var pageMatch = new RegExp('[?&]p=(\\\d?)').exec(page); + var pageMatch = new RegExp('[?&]p=(\\\d+)').exec(page); var pageValue = 1; if (pageMatch) { pageValue = pageMatch[1];