Skip to content

Commit

Permalink
Fix incorrect redirect link of delete org project (#23327)
Browse files Browse the repository at this point in the history
A part of https://github.com/go-gitea/gitea/pull/22865/commits

The old code will cause 500 error.
  • Loading branch information
yp05327 authored Mar 6, 2023
1 parent 3f547c7 commit e7b8988
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 e7b8988

Please sign in to comment.