We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559b771 commit 1ee42d3Copy full SHA for 1ee42d3
templates/blog/_post_tags.html.twig
@@ -1,7 +1,7 @@
1
{% if not post.tags.empty %}
2
<p class="post-tags">
3
{% for tag in post.tags %}
4
- <a href="{{ path('blog_index', {'tag': tag.name}) }}"
+ <a href="{{ path('blog_index', {'tag': tag.name == app.request.query.get('tag') ? null : tag.name}) }}"
5
class="label label-{{ tag.name == app.request.query.get('tag') ? 'success' : 'default' }}"
6
>
7
<i class="fa fa-tag"></i> {{ tag.name }}
0 commit comments