{# <ul class="pagination">
{% for item in pagination %}
{% set route_params = app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'page': item.page })) %}
<li {% if item.active|default('') %}class="active"{% endif %}>
<a href="{{ path(app.request.attributes.get('_route'), route_params|arr_unset('mode')) }}">{{ item.descr|raw }}</a>
</li>
{% endfor %}
</ul> #}
<nav aria-label="...">
<ul class="pagination justify-content-center m-0">
{% for item in pagination %}
{% set route_params = app.request.attributes.get('_route_params')|merge(app.request.query.all|merge({'page': item.page })) %}
<li {% if item.active|default('') %}class="active" aria-current="page"{% endif %}>
<a class="page-link" href="{{ path(app.request.attributes.get('_route'), route_params|arr_unset('mode')) }}">{{ item.descr|raw }}<span class="sr-only">(current)</span></a>
</li>
{% endfor %}
</ul>
</nav>