Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: language switch
Browse files Browse the repository at this point in the history
  • Loading branch information
eyworldwide committed Nov 16, 2020
1 parent 9f9c703 commit eba5857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

var href = window.location.href;

href = href.replace(currentLang, lang);
href = href.replace(`/${currentLang}`, `/${lang}`);

window.location.replace(href)
});
Expand Down

0 comments on commit eba5857

Please sign in to comment.