Skip to content

Commit

Permalink
GH-56: fix language switching issue
Browse files Browse the repository at this point in the history
Signed-off-by:Bart Hanssens <[email protected]>
  • Loading branch information
barthanssens committed Sep 7, 2022
1 parent 875cfba commit ca286c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private URL switchLanguage(String lang) throws IOException {

Elements lis = Jsoup.parse(front).getElementsByClass(HtmlFpsDiplobel.LANG_LINK);
for (Element li : lis) {
if (li.text().equals(lang)) {
if (li.text().toLowerCase().equals(lang)) {
String href = li.attr(Attribute.HREF.toString());
return makeAbsURL(href);
}
Expand Down

0 comments on commit ca286c7

Please sign in to comment.