Commit 5718157f authored by Joan's avatar Joan

Change behaviour of language links to fix #1052

parent 237c3201
......@@ -63,7 +63,11 @@
{% for lang_code, lang_name in languages %}
{% language lang_code %}
<a href="{% url 'documentation_trans' %}">{{ lang_name }}</a>
<form style="display:inline;" name="setLang{{ lang_name }}" action="/i18n/setlang/" method="POST">{% csrf_token %}
<input name="next" type="hidden" value="/" />
<input type="hidden" name="language" value="{{ lang_code }}" />
<a href="#" onclick="document.setLang{{ lang_name }}.submit();return false;">{{ lang_name }}</a>
</form>
{% endlanguage %}
{% endfor %}
</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment