Fix various bugs (#35684) (#35696)

Backport #35684 by wxiaoguang
This commit is contained in:
Giteabot authored and GitHub committed 2025-10-19 02:26:03 +08:00
1 parent f71df88a6b
commit 4af1d58c86
15 files changed
+98 -86

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ func getPullInfo(ctx *context.Context) (issue *issues_model.Issue, ok bool) {
ctx.Data["Issue"] = issue
if !issue.IsPull {
ctx.NotFound(nil)
ctx.Redirect(issue.Link())
return nil, false
}