forked from mirror/Part-DB.Part-DB-server
Fixed issue that change of language via language selector did not changed the navbar and sidebar
This commit is contained in:
parent
055752a24d
commit
f50959837f
2 changed files with 2 additions and 7 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
<div class="d-none" {{ stimulus_controller('turbo/locale_menu') }}>
|
||||
{% for locale in locale_menu %}
|
||||
<a class="dropdown-item" data-turbo="false" href="{{ path(app.request.attributes.get('_route'),
|
||||
<a class="dropdown-item" data-turbo="false" data-turbo-frame="_top" href="{{ path(app.request.attributes.get('_route'),
|
||||
app.request.attributes.get('_route_params')|merge({'_locale': locale})) }}">
|
||||
{{ locale|language_name }} ({{ locale|upper }})</a>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue