summaryrefslogtreecommitdiffstats
path: root/docs/static
diff options
context:
space:
mode:
authorJoe Constant <joe@joeconstant.com>2022-10-06 14:53:02 -0600
committerGitHub <noreply@github.com>2022-10-06 21:53:02 +0100
commitd7f0d8d8eab168d9d379c7a8b8c15aa3cc046516 (patch)
treeb196e0cc455ba9eb48eee2c4c58ec6a386a0b0ca /docs/static
parentf1f911df41cc7c566348cae3672a32291d98a890 (diff)
downloadgitea-d7f0d8d8eab168d9d379c7a8b8c15aa3cc046516.tar.gz
gitea-d7f0d8d8eab168d9d379c7a8b8c15aa3cc046516.zip
Add redirect of /upgrade/ to /upgrade-from-gitea/ on docs site (#21330)
Since adding an aliases block doesn't seem to work locally for me (I suspect because a page actually exists and Hugo is granting preference to existing pages over aliases), I also added entries to static/_redirects file so Netlify will handle the redirects Fixes #7208
Diffstat (limited to 'docs/static')
-rw-r--r--docs/static/_redirects4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/static/_redirects b/docs/static/_redirects
index 2114ae933f..676181b61f 100644
--- a/docs/static/_redirects
+++ b/docs/static/_redirects
@@ -10,3 +10,7 @@ https://gitea-docs.netlify.com/* https://docs.gitea.io/:splat 302!
/en-us/ci-cd/ /en-us/integrations/ 302!
/en-us/third-party-tools/ /en-us/integrations/ 302!
/en-us/make/ /en-us/hacking-on-gitea/ 302!
+/en-us/upgrade/ /en-us/upgrade-from-gitea/ 302!
+/fr-fr/upgrade/ /fr-fr/upgrade-from-gitea/ 302!
+/zh-cn/upgrade/ /zh-cn/upgrade-from-gitea/ 302!
+/zh-tw/upgrade/ /zh-tw/upgrade-from-gitea/ 302!