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.
1 parent 8b935d8 commit 8e6a1b7Copy full SHA for 8e6a1b7
assets/js/locale.js
@@ -5,7 +5,7 @@ $(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 {
0 commit comments