Skip to content
Snippets Groups Projects
Commit deb7a8b6 authored by Teemu Autto's avatar Teemu Autto
Browse files

Merge branch '21b57c8b-fix' into i18n

parents ff3e2fab d9006392
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@
</button>
<div class="dropdown-menu" id="locale-selector">
{% for _, lang in locales.items() %}
<a class="dropdown-item {% if lang|lower == get_locale()|lower %}active{% endif %}" href="{{ url_for(request.endpoint, locale=lang) }}">{{lang.display_name}}</a>
<a class="dropdown-item {% if lang|lower == get_locale()|lower %}active{% endif %}" href="{{ url_for(request.endpoint, **dict(request.view_args, locale=lang)) }}">{{lang.display_name}}</a>
{% endfor %}
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment