Skip to content

Commit 654daad

Browse files
committed
Redirect to files diff as a little update to go-gitea#4632
1 parent 2a4a5fc commit 654daad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/pull_review.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func SubmitReview(ctx *context.Context, form auth.SubmitReviewForm) {
130130

131131
if form.HasEmptyContent() {
132132
ctx.Flash.Error(ctx.Tr("repo.issues.review.content.empty"))
133-
ctx.Redirect(fmt.Sprintf("%s/pulls/%d", ctx.Repo.RepoLink, issue.Index))
133+
ctx.Redirect(fmt.Sprintf("%s/pulls/%d/files", ctx.Repo.RepoLink, issue.Index))
134134
return
135135
}
136136

0 commit comments

Comments
 (0)