Fix pagination urls

This commit is contained in:
richard-dds
2019-06-17 14:44:56 -04:00
parent 90b06601e6
commit 747978f92b
2 changed files with 14 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
{% set button_class = button_class + "usa-button-secondary" %}
{% endif %}
<a id="{{ label }}" type="button" class="{{ button_class }}" href="{{ url if not disabled else 'null' }}">{{ label }}</a>
<a id="{{ label }}" type="button" class="{{ button_class }}" href="{{ url |withExtraParams(page=i) if not disabled else 'null' }}">{{ label }}</a>
{%- endmacro %}
{% macro Pagination(pagination, url) -%}