Skip to content

Commit

Permalink
docs: redirect /zh-CN to /, Close #8213, Close #8181
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Jun 24, 2022
1 parent 73e4846 commit 803d3d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ import Footer from './components/Footer/Footer';
<WhoIsUsing />
<Contributing />
<Footer />

4 changes: 4 additions & 0 deletions global.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Redirect /zh-CN to /
if (location.pathname.startsWith('/zh-CN')) {
location.pathname = '/';
}

1 comment on commit 803d3d5

@vercel
Copy link

@vercel vercel bot commented on 803d3d5 Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.