Skip to content

Commit cbe6a8d

Browse files
authored
Merge pull request #1033 from suga0828/develop
Deploy in a sub dir
2 parents dca9b05 + bd016f9 commit cbe6a8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/locale.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ $(document).ready(function() {
55
});
66

77
function loadLanguage(lang) {
8-
base_pathname = window.location.pathname.replace(/^\/[a-z]+([_-][a-z]+)?\//, "/")
8+
base_pathname = window.location.pathname.replace(/\/[a-z]+([_-][a-z]+)?\//, "/")
99
if (lang === "en") {
1010
url = base_pathname
1111
} else {
12-
url = "/" + lang + base_pathname
12+
url = base_pathname + lang
1313
}
1414
window.location.assign(url);
1515
}

0 commit comments

Comments
 (0)