After changing language, redirect to home page (#12607)

This commit is contained in:
rafalxintel 2022-09-19 14:50:36 +02:00 committed by GitHub
parent b6c77d21c9
commit 0dfd409951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@
<div class="dropdown-menu" aria-labelledby="language-selector">
{% for slug, url in languages %}
{% if slug == current_language %}
<a class="dropdown-item font-weight-bold" href="{{ url }}/{{ pagename }}.html">{{ slug }}</a>
<a class="dropdown-item font-weight-bold" href="{{ url }}/index.html">{{ slug }}</a>
{% else %}
<a class="dropdown-item" href="{{ url }}/{{ pagename }}.html">{{ slug }}</a>
<a class="dropdown-item" href="{{ url }}/index.html">{{ slug }}</a>
{% endif %}
{% endfor %}
</div>