Skip to content

Commit

Permalink
bug #6688 Fix pretty URLs with i18n backends (javiereguiluz)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 4.x branch.

Discussion
----------

Fix pretty URLs with i18n backends

Fixes #6498.

Commits
-------

df47513 Fix pretty URLs with i18n backends
  • Loading branch information
javiereguiluz committed Jan 7, 2025
2 parents 0553f47 + df47513 commit 2dfefea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
{% for localeDto in ea.dashboardLocales %}
<twig:ea:ActionMenu:ActionList:Item
class="{{ app.request.locale == localeDto.locale ? 'active' }}"
url="{{ ea_url().set('_locale', localeDto.locale) }}"
url="{{ ea_url().set('_locale', localeDto.locale).set('entityId', app.request.attributes.get('entityId')).generateUrl() }}"
icon="{{ localeDto.icon }}" label="{{ localeDto.name }}" />
{% endfor %}

Expand Down

0 comments on commit 2dfefea

Please sign in to comment.