Skip to content

Commit 803d3d5

Browse files
committed
docs: redirect /zh-CN to /, Close umijs#8213, Close umijs#8181
1 parent 73e4846 commit 803d3d5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ import Footer from './components/Footer/Footer';
99
<WhoIsUsing />
1010
<Contributing />
1111
<Footer />
12+

global.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Redirect /zh-CN to /
2+
if (location.pathname.startsWith('/zh-CN')) {
3+
location.pathname = '/';
4+
}

0 commit comments

Comments
 (0)