summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-03-06 16:05:42 -0500
committerGitHub <noreply@github.com>2023-03-06 16:05:42 -0500
commitdfab6e2d1c821408792a0d9b602eec7097f3840d (patch)
tree16885192ec44cbe8b5f204da1847b8ac8b26b252 /routers
parent2f7bbdf8c9cd8c36bfbb39b7cd477d4be09926ba (diff)
downloadgitea-dfab6e2d1c821408792a0d9b602eec7097f3840d.tar.gz
gitea-dfab6e2d1c821408792a0d9b602eec7097f3840d.zip
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 <576951401@qq.com> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r--routers/web/org/projects.go2
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",
})
}