diff --git a/packages/components/pagination/template.njk b/packages/components/pagination/template.njk index 2ba654842..b68569915 100644 --- a/packages/components/pagination/template.njk +++ b/packages/components/pagination/template.njk @@ -42,8 +42,7 @@ the numbered variant only, and including an arrow pointing left or right. #} {%- macro _arrowLink(link, type = "next") %} {% set arrowType = arrowPrevious if type == "prev" else arrowNext %}
- + {%- if type == "prev" -%} {{ _arrowPrevious() }} {%- endif -%} @@ -62,7 +61,7 @@ the numbered variant only, and including an arrow pointing left or right. #} {%- if numbered %} {% if params.previousUrl %} - {% call _arrowLink(previous, "prev") -%} + {% call _arrowLink(params.previousUrl, "prev") -%} Previous page {% endcall %} {% endif %} @@ -74,7 +73,7 @@ the numbered variant only, and including an arrow pointing left or right. #} {% if params.nextUrl %} - {% call _arrowLink(previous, "next") -%} + {% call _arrowLink(params.nextUrl, "next") -%} Next page {%- endcall %} {% endif %}