Skip to content

Commit d652927

Browse files
committed
docs: direct /zh-CN to v3.umijs.org for a period of time
1 parent 803d3d5 commit d652927

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

docs/README.md

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

global.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// Redirect /zh-CN to /
22
if (location.pathname.startsWith('/zh-CN')) {
3-
location.pathname = '/';
3+
location.href = `https://v3.umijs.org${location.pathname}`;
44
}

0 commit comments

Comments
 (0)