mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
fix: '/zh/' url problem
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
parent
a0f43aef26
commit
a564fe904e
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue