From 3f01a0d7dae2d50d57edbeea6336e9d1fec74d6f Mon Sep 17 00:00:00 2001 From: peijunlei Date: Mon, 7 Sep 2026 15:46:04 +0800 Subject: [PATCH] fix(i18n): correct path formatting for language-specific URLs --- public/themes/dist_static/static/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/themes/dist_static/static/js/common.js b/public/themes/dist_static/static/js/common.js index bcd6ba0..9d04526 100644 --- a/public/themes/dist_static/static/js/common.js +++ b/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; };