Fix active item

This commit is contained in:
Thomas 2019-08-13 11:24:36 +02:00
parent b984f2bd50
commit f1ab597934

View file

@ -14,7 +14,7 @@
</li>
{% endif %}
{% if is_granted('ROLE_USER') %}
<li class="nav-item {% if "articles" in app.request.attributes.get('schedule') %} active {% endif %}">
<li class="nav-item {% if app.request.attributes.get('_route') == 'schedule' %}active {% endif %}">
<a class="nav-link" href="{{ path('schedule') }}">{{ 'common.schedule'|trans }}</a>
</li>