Skip to content

Fix deprecation: redirect_to :back is deprecated

Jasper Maes requested to merge jlemaes/gitlab-ce:deprecated-redirect-back into master

What does this MR do?

Fix deprecation `redirect_to :back` is deprecated and will be removed from Rails 5.1. Please use `redirect_back(fallback_location: fallback_location)` where `fallback_location` represents the location to use if the request has no HTTP referer information.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports