diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ab4f55948769..d1bc1dcdaddb 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -336,7 +336,7 @@ def process_ajax_error(exception, action = nil) end def redirect_back_or_to(url) - redirect_back(fallback_location: url) + redirect_back(fallback_location: url, allow_other_host: false) end def saved_redirect_url_or(default)