Skip to content

Commit

Permalink
lowercased the wrong string
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Holywell authored and Simon Holywell committed Feb 28, 2018
1 parent 321de82 commit e927173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ document.addEventListener('DOMContentLoaded', () => {
* translation jump menu
*/
document.getElementById('language-drop').addEventListener('change', e => {
var selected = e.target.selectedOptions[0].value + '/'.toLowerCase();
var selected = e.target.selectedOptions[0].value + '/';
if (selected === 'en/') selected = '';
window.location.href = `{{ site.url }}/${selected}`;
window.location.href = `{{ site.url }}/${selected.toLowerCase()}`;
});

/*
Expand Down

0 comments on commit e927173

Please sign in to comment.