fix(crud/template): use default route params
This commit is contained in:
parent
7fbbad9909
commit
5ba5e93d14
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
{% block header_actions_before %}{% endblock %}
|
||||
|
||||
{% if configuration.action(context, 'back', true) %}
|
||||
<a href="{{ path(configuration.pageRoute('index')) }}" class="btn btn-light">
|
||||
<a href="{{ path(configuration.pageRoute('index'), configuration.pageRouteParams('index')) }}" class="btn btn-light">
|
||||
<span class="fa fa-list pr-1"></span>
|
||||
<span class="d-none d-md-inline">
|
||||
{{ configuration.actionTitle(context, 'back', 'Back to the list')|trans }}
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% if configuration.action(context, 'edit', true, [entity]) %}
|
||||
<a href="{{ path(configuration.pageRoute('edit'), {entity: entity.id}) }}" class="btn btn-primary">
|
||||
<a href="{{ path(configuration.pageRoute('edit'), {entity: entity.id}|merge(configuration.pageRouteParams('edit'))) }}" class="btn btn-primary">
|
||||
<span class="fa fa-edit pr-1"></span>
|
||||
|
||||
<span class="d-none d-md-inline">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue