From bb3897cb73deead7ff4f698b8864b216f1a33f89 Mon Sep 17 00:00:00 2001 From: Edwin Jacobs Date: Mon, 14 Dec 2020 17:38:39 +0100 Subject: [PATCH] Pager would not load beyond 9 changed regex to facilitate pagers 10, 11 etcetc --- view/frontend/web/js/toolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];