1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

Fix incorrect redirect link of delete org project (#23327)

A part of https://github.com/go-gitea/gitea/pull/22865/commits

The old code will cause 500 error.
This commit is contained in:
yp05327 2023-03-07 03:05:26 +09:00 committed by GitHub
parent 3f547c7afb
commit e7b89888e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ func DeleteProject(ctx *context.Context) {
}
ctx.JSON(http.StatusOK, map[string]interface{}{
"redirect": ctx.Repo.RepoLink + "/projects",
"redirect": ctx.ContextUser.HomeLink() + "/-/projects",
})
}