Skip to content

Commit dfab6e2

Browse files
GiteaBotyp05327jolheiser
authored
Fix incorrect redirect link of delete org project (#23327) (#23339)
Backport #23327 A part of https://github.com/go-gitea/gitea/pull/22865/commits The old code will cause 500 error. Co-authored-by: yp05327 <[email protected]> Co-authored-by: John Olheiser <[email protected]>
1 parent 2f7bbdf commit dfab6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/org/projects.go

Lines changed: 1 addition & 1 deletion
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)