Commit 62e1dd28 authored by dcouture's avatar dcouture

After an abuse report, redirect to root

parent 0a79c85b
......@@ -19,7 +19,7 @@ class AbuseReportsController < ApplicationController
@abuse_report.notify
message = _("Thank you for your report. A GitLab administrator will look into it shortly.")
redirect_to @abuse_report.user, notice: message
redirect_to root_path, notice: message
else
render :new
end
......
......@@ -59,7 +59,7 @@ RSpec.describe AbuseReportsController do
it 'redirects back to the reported user' do
post :create, params: { abuse_report: attrs }
expect(response).to redirect_to user
expect(response).to redirect_to root_path
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment