Skip to content

Commit c6ebc61

Browse files
yp05327GiteaBot
authored andcommitted
Fix incorrect redirect link of delete org project (go-gitea#23327)
A part of https://github.com/go-gitea/gitea/pull/22865/commits The old code will cause 500 error.
1 parent 233a399 commit c6ebc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: routers/web/org/projects.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func DeleteProject(ctx *context.Context) {
205205
}
206206

207207
ctx.JSON(http.StatusOK, map[string]interface{}{
208-
"redirect": ctx.Repo.RepoLink + "/projects",
208+
"redirect": ctx.ContextUser.HomeLink() + "/-/projects",
209209
})
210210
}
211211

0 commit comments

Comments
 (0)