Skip to content

Commit 2f25994

Browse files
authored
Merge pull request #1045 from qijiale76/master
Debug language switch navigation link-error
2 parents 70a300f + f84b435 commit 2f25994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/locale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function loadLanguage(lang) {
99
if (lang === "en") {
1010
url = base_pathname
1111
} else {
12-
url = base_pathname + lang
12+
url = "/" + lang + base_pathname
1313
}
1414
window.location.assign(url);
1515
}

0 commit comments

Comments
 (0)