Skip to content

Commit 31b4dcf

Browse files
committed
Redirect to compare link again with warning
1 parent ca72153 commit 31b4dcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/repo/pull.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,8 @@ func CompareAndPullRequestPost(ctx *context.Context) {
15001500
ctx.ServerError("CompareAndPullRequest.HTMLString", err)
15011501
return
15021502
}
1503-
ctx.JSONError(flashError)
1503+
ctx.Flash.Warning(flashError)
1504+
ctx.JSONRedirect(ctx.Link)
15041505
return
15051506
}
15061507
ctx.ServerError("NewPullRequest", err)

0 commit comments

Comments
 (0)