Browse Source

fix(i18n): correct path formatting for language-specific URLs

master
peijunlei 2 weeks ago
parent
commit
3f01a0d7da
  1. 2
      public/themes/dist_static/static/js/common.js

2
public/themes/dist_static/static/js/common.js

@ -194,7 +194,7 @@ $(function() {
if (!targetLang || targetLang === defaultLang) {
path = rest ? `/${rest}` : "/";
} else {
path = rest ? `/${targetLang}/${rest}` : `/${targetLang}/`;
path = rest ? `/${targetLang}/${rest}` : `/${targetLang}`;
}
return path + location.search + location.hash;
};

Loading…
Cancel
Save