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 62bb17b commit a2cfc65Copy full SHA for a2cfc65
docs/.vitepress/config.ts
@@ -37,6 +37,13 @@ const vitePressConfig: UserConfig = {
37
window.location.replace(base + 'zhHans/' + search + hash);
38
}
39
40
+
41
+ if (pathname.startsWith(base + 'zh/')) {
42
+ // redirect /zh/ to /zhHans/
43
+ const newPath = pathname.replace(base + 'zh/', base + 'zhHans/');
44
+ window.location.replace(newPath + search + hash);
45
+ return;
46
+ }
47
})();
48
`,
49
],
0 commit comments