diff options
author | yp05327 <576951401@qq.com> | 2023-03-07 03:05:26 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 12:05:26 -0600 |
commit | e7b89888e158b76a27c101bbfa1775ccd6b55ce9 (patch) | |
tree | 1db456224935f7a136ef22e50cfb5b8918cc4c6f /routers/web/org | |
parent | 3f547c7afb8135cadd2253acece45de1e0703e76 (diff) | |
download | gitea-e7b89888e158b76a27c101bbfa1775ccd6b55ce9.tar.gz gitea-e7b89888e158b76a27c101bbfa1775ccd6b55ce9.zip |
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.
Diffstat (limited to 'routers/web/org')
-rw-r--r-- | routers/web/org/projects.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go index 6449d12de1..046100c72e 100644 --- a/routers/web/org/projects.go +++ b/routers/web/org/projects.go @@ -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", }) } |