forked from forgejo/forgejo
Fix language switch for install page (#16043)
Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
parent
072df3ff87
commit
7081046b5f
2 changed files with 10 additions and 1 deletions
|
@ -103,7 +103,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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue