fix: '/zh/' url problem

Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
TheYoungManLi 2023-01-21 18:47:35 +08:00
parent a0f43aef26
commit a564fe904e

View File

@ -29,7 +29,7 @@
if(!cookieBanned){
if (pageLang === 'en') {
if (nowPathName.startsWith('/zh')) {
window.location.href = nowPathName.slice(2,)
window.location.href = nowPathName.slice(3,)
}
} else {
if (!nowPathName.startsWith('/zh')) {