We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dca9b05 + bd016f9 commit cbe6a8dCopy full SHA for cbe6a8d
assets/js/locale.js
@@ -5,11 +5,11 @@ $(document).ready(function() {
5
});
6
7
function loadLanguage(lang) {
8
- base_pathname = window.location.pathname.replace(/^\/[a-z]+([_-][a-z]+)?\//, "/")
+ base_pathname = window.location.pathname.replace(/\/[a-z]+([_-][a-z]+)?\//, "/")
9
if (lang === "en") {
10
url = base_pathname
11
} else {
12
- url = "/" + lang + base_pathname
+ url = base_pathname + lang
13
}
14
window.location.assign(url);
15
0 commit comments