Skip to content

Commit

Permalink
Set the referer URL in the links displayed for associations
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Feb 3, 2016
1 parent a5bc8d8 commit eeaa276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/default/field_association.html.twig
@@ -1,7 +1,7 @@
{% if value is iterable %}
<span class="badge">{{ value|length }}</span>
{% elseif link_parameters is defined %}
<a href="{{ path('easyadmin', link_parameters) }}">{{ value|easyadmin_truncate }}</a>
<a href="{{ path('easyadmin', link_parameters|merge({ referer: app.request.requestUri })) }}">{{ value|easyadmin_truncate }}</a>
{% else %}
{{ value|easyadmin_truncate }}
{% endif %}

0 comments on commit eeaa276

Please sign in to comment.