mirror of https://github.com/wallabag/wallabag.git
fix #1350: fix pagination with filters
This commit is contained in:
parent
80127e4fb1
commit
c14a7c4251
|
@ -22,7 +22,7 @@
|
||||||
<ul class="pagination right">
|
<ul class="pagination right">
|
||||||
{% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
|
{% for p in range(1, entries.nbPages) if entries.nbPages > 1 %}
|
||||||
<li class="{{ currentPage == p ? 'active':'waves-effect'}}">
|
<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>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue