Skip to content
Snippets Groups Projects
Commit cad68c0e authored by HeJ's avatar HeJ
Browse files

plainui: language selector: use direct link in archive_mode

parent 0ae13523
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@
</svg>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="lang-select">
{% if not archive_mode %}
<form
class="hub-header__additional-lang"
method="POST"
......@@ -74,6 +75,10 @@
{{ _("en") }}
</button></li>
</form>
{% else %}
<li><a class="dropdown-item" href="{{ hub_absolute_self(request, lang='de') }}">{{ _("de") }}</a></li>
<li><a class="dropdown-item" href="{{ hub_absolute_self(request, lang='en') }}">{{ _("en") }}</a></li>
{% endif %}
</ul>
{%- endmacro %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment