Skip to content

Commit

Permalink
feature #830 Reset tag filter if it's link was clicked again (voronko…
Browse files Browse the repository at this point in the history
…vich)

This PR was merged into the master branch.

Discussion
----------

Reset tag filter if it's link was clicked again

Commits
-------

1ee42d3 Reset tag filter if it's link was clicked again
  • Loading branch information
javiereguiluz committed Jul 18, 2018
2 parents c624230 + 1ee42d3 commit d9b74a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/blog/_post_tags.html.twig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if not post.tags.empty %}
<p class="post-tags">
{% for tag in post.tags %}
<a href="{{ path('blog_index', {'tag': tag.name}) }}"
<a href="{{ path('blog_index', {'tag': tag.name == app.request.query.get('tag') ? null : tag.name}) }}"
class="label label-{{ tag.name == app.request.query.get('tag') ? 'success' : 'default' }}"
>
<i class="fa fa-tag"></i> {{ tag.name }}
Expand Down

0 comments on commit d9b74a1

Please sign in to comment.