Skip to content

Commit

Permalink
docs: direct /zh-CN to v3.umijs.org for a period of time
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jun 24, 2022
1 parent 803d3d5 commit d652927
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ import Footer from './components/Footer/Footer';
<WhoIsUsing />
<Contributing />
<Footer />

2 changes: 1 addition & 1 deletion global.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Redirect /zh-CN to /
if (location.pathname.startsWith('/zh-CN')) {
location.pathname = '/';
location.href = `https://v3.umijs.org${location.pathname}`;
}

0 comments on commit d652927

Please sign in to comment.