1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-05 17:18:21 +00:00

Fix language switch for install page (#16043) (#16128)

Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
a1012112796
2021-06-10 21:19:40 +08:00
committed by GitHub
parent 41a4047e79
commit c1887bfc9b
2 changed files with 10 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ func InstallRoutes() *web.Route {
r.Get("/", routers.Install)
r.Post("/", web.Bind(forms.InstallForm{}), routers.InstallPost)
r.NotFound(func(w http.ResponseWriter, req *http.Request) {
http.Redirect(w, req, setting.AppURL, 302)
http.Redirect(w, req, setting.AppURL, http.StatusFound)
})
return r
}