I'm trying to override the login template of sonata bundle (base_login.html.twig). I want to add some link to other page but the template is not updating at 100%. The first new link i added outside the if statement is visible, but the one in the statement isn't. It 's like all changes in the if statement are not taken.
here is the code :
<ul>
<li><a href="{{ path('homepage') }}">Accueil</a></li>
<li><a href="{{ path('homepage') }}">gg</a></li> //this new link is visible when i render my login page
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li>Bonjour, {{ app.user }}</li>
<li><a href="{{ path('adminn') }}">Espace administration</a></li>
<li><a href="{{ path('homepage') }}">test</a></li> //this link isn't visible
<li><a href="{{ path('fos_user_security_logout') }}">Déconnexion</a></li>
{% else %}
<li><a href="{{ path('fos_user_registration_register') }}">Inscription</a></li>
<li><a href="{{ path('fos_user_security_login') }}"><i class="fa fa-hand-o-right" aria-hidden="true"></i>
Connexion</a></li>
{% endif %}
</ul>
I have set cache to false and still no change.. If someone have an idea, he/she is welcome !