We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc282c4 commit 21249e1Copy full SHA for 21249e1
1 file changed
templates/_footer_lang.html
@@ -1,6 +1,6 @@
1
<div class="footer-lang">
2
<label for="lang-select" class="sr-only">{{ t_language }}</label>
3
- <select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value){var u=new URL(this.value,window.location.origin);u.search=window.location.search;window.location.href=u.href}">
+ <select id="lang-select" class="lang-select" autocomplete="off" onchange="if(this.value){var u=new(window.URL)(this.value,window.location.origin);u.search=window.location.search;window.location.href=u.href}">
4
{% for l in all_locales %}
5
<option value="/{{ l.tag() }}"{% if *l == locale %} selected{% endif %}>{{ l.name() }}</option>
6
{% endfor %}
0 commit comments