@@ -51,8 +51,8 @@
{% endif %}
<li class="nav-item">
<a class="nav-link
- {% if app.request.attributes.get('_route') == 'app_page_show' and app.request.attributes.get('_route_params')['name'] == 'about' %}active{% endif %}"
- href="{{path('app_page_show', {'name': 'about'}) }}">A propos</a>
+ {% if app.request.attributes.get('_route') == 'app_page_show' and app.request.attributes.get('_route_params')['id'] == 'about' %}active{% endif %}"
+ href="{{path('app_page_show', {'id': 'about'}) }}">A propos</a>
</li>
</ul>
<ul class="navbar-nav">
@@ -2,7 +2,7 @@
{% block body %}
{% if is_granted('ROLE_ADMIN') %}
- <a href="{{ path('app_page_edit', {'name': page.name}) }}" class="btn btn-primary mb-3"><i class="fa fa-edit"></i> {{ "edit_page" | trans }}</a>
+ <a href="{{ path('app_page_edit', {'id': page.name}) }}" class="btn btn-primary mb-3"><i class="fa fa-edit"></i> {{ "edit_page" | trans }}</a>
{% apply markdown_to_html %}