Skip to content

Commit 4a6c6f2

Browse files
Andrea GriffithsCopilot
andcommitted
Add redirect_from /zh/ to zh_hans pages
Preserves inbound links and indexed search results for the existing /zh/, /zh/businesses/, and /zh/maintainers/ URLs after the locale rename. Uses the already-enabled jekyll-redirect-from plugin so no new dependencies are introduced. Addresses Copilot review feedback on PR #1333. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3bb739d commit 4a6c6f2

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

_articles/zh_hans/businesses.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
22
layout: businesses
33
lang: zh_hans
4+
redirect_from:
5+
- /zh/businesses/
46
---

_articles/zh_hans/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
layout: index
33
lang: zh_hans
44
permalink: /zh_hans/
5+
redirect_from:
6+
- /zh/
57
---

_articles/zh_hans/maintainers.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
---
22
layout: maintainers
33
lang: zh_hans
4+
redirect_from:
5+
- /zh/maintainers/
46
---

0 commit comments

Comments
 (0)