We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d86ad commit ce3fe05Copy full SHA for ce3fe05
services/context/repo.go
@@ -328,7 +328,7 @@ func RedirectToRepo(ctx *Base, redirectRepoID int64) {
328
if ctx.Req.URL.RawQuery != "" {
329
redirectPath += "?" + ctx.Req.URL.RawQuery
330
}
331
- ctx.Redirect(path.Join(setting.AppSubURL, redirectPath), http.StatusTemporaryRedirect)
+ ctx.Redirect(path.Join(setting.AppSubURL, redirectPath), http.StatusMovedPermanently)
332
333
334
func repoAssignment(ctx *Context, repo *repo_model.Repository) {
0 commit comments