Skip to content
Snippets Groups Projects
Commit 17c8e40e authored by Julian's avatar Julian
Browse files

Fixed setlang redirect url

parent 7e4dba2c
Branches
Tags
No related merge requests found
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
{% if config['LANGUAGES']|length > 1 %} {% if config['LANGUAGES']|length > 1 %}
<li class="nav-item"> <li class="nav-item">
<form class="language-switch py-2 pr-1" method="POST" style="margin-left: -5px;" action="{{ url_for('setlang') }}"> <form class="language-switch py-2 pr-1" method="POST" style="margin-left: -5px;" action="{{ url_for('setlang') }}">
<input type="hidden" name="ref" value="{{ request.uri }}"> <input type="hidden" name="ref" value="{{ request.url }}">
<select name="lang" class="bg-dark" style="border: 0px; color: rgba(255, 255, 255, 0.5);" onchange="$('.language-switch').submit()"> <select name="lang" class="bg-dark" style="border: 0px; color: rgba(255, 255, 255, 0.5);" onchange="$('.language-switch').submit()">
{% for language in config['LANGUAGES'] %} {% for language in config['LANGUAGES'] %}
<option value="{{ language['value'] }}" {{ 'selected' if language['value'] == get_locale() }}>{{ language['display'] }}</option> <option value="{{ language['value'] }}" {{ 'selected' if language['value'] == get_locale() }}>{{ language['display'] }}</option>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment