diff options
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 83b30d45d..074392709 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -513,7 +513,7 @@ class ApplicationController < ActionController::Base end end # Remove unnecessary components to convert the URL into a relative URL - uri.omit!(:scheme, :userinfo, :host, :port) + uri.omit!(:scheme, :authority) rescue Addressable::URI::InvalidURIError return false end |