Commit b4b045fa authored by Dmytro Zaporozhets (DZ)'s avatar Dmytro Zaporozhets (DZ)

Merge branch 'abuse-redirect-root' into 'master'

After an abuse report, redirect to root instead of user profile

See merge request gitlab-org/gitlab!63793
parents 2f7bf850 62e1dd28
......@@ -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