Skip to content

Commit

Permalink
Fix incorrect redirect link of delete org project (#23327) (#23339)
Browse files Browse the repository at this point in the history
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 <576951401@qq.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
  • Loading branch information
3 people authored Mar 6, 2023
1 parent 2f7bbdf commit dfab6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/org/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
}

Expand Down

0 comments on commit dfab6e2

Please sign in to comment.