I would like to show an active link when the link is clicked (and that link stay active while the user is on link1 for example) (I'm using Symfony2 with Twitter bootstrap)
<ul class="nav nav-list">
<li class="active"> <a href="/link1">Link</a> </li>
<li class=""> <a href="/link2">Link</a> </li>
<li class=""> <a href="/link3">Link</a> </li>
</ul>
EDIT
The template of the menu is imported in each page as a block (I'm using twig), for example for link1.html.twig, I would have :
{% include menu.html.twig %}
code html ...
etc
Any help would be much appreciated.