Skip to content

Commit 2ea1db4

Browse files
committed
redirect with explicit path
1 parent 9c0419b commit 2ea1db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/request_for_comments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def report
168168

169169
ReportMailer.with(reported_content: @request_for_comment).report_content.deliver_later
170170

171-
redirect_to(@request_for_comment, notice: t('.report.reported'))
171+
redirect_to(request_for_comment_path(@request_for_comment), notice: t('.report.reported'))
172172
end
173173

174174
private

0 commit comments

Comments
 (0)