Skip to content

Commit

Permalink
Merge pull request #115 from Lagaffe/master
Browse files Browse the repository at this point in the history
replaced use of url function with use of path function to fix issue #113
  • Loading branch information
SahAssar authored Apr 12, 2017
2 parents 231be54 + 946950b commit dedaee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/fields/_locale.twig
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<ul class="dropdown-menu">
{% for key, option in locales %}
<li>
<a href="{{ url(
<a href="{{ path(
app.request.get('_route'),
app.request.get('_route_params')|merge({_locale: option.get('slug') })
)}}">
Expand Down

0 comments on commit dedaee5

Please sign in to comment.