fix #1350: fix pagination with filters

This commit is contained in:
Nicolas Lœuillet 2015-08-17 12:13:37 +02:00
parent 80127e4fb1
commit c14a7c4251

View file

@ -22,7 +22,7 @@
<ul class="pagination right">
{% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
<li class="{{ currentPage == p ? 'active':'waves-effect'}}">
<a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}" >{{ p }}</a>
<a href="{{ path(app.request.attributes.get('_route'), app.request.query.all|merge({'page': p})) }}" >{{ p }}</a>
</li>
{% endfor %}
</div>