diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/hook.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb index bcd23b64f..63d7a5961 100644 --- a/lib/redmine/hook.rb +++ b/lib/redmine/hook.rb @@ -60,16 +60,7 @@ module Redmine returning [] do |response| hls = hook_listeners(hook) if hls.any? - request = context[:request] - if request - default_url_options[:host] ||= request.env["SERVER_NAME"] - # Only set port if it's requested and isn't port 80. Otherwise a url - # like: +http://example.com:/url+ may be generated - if request.env["SERVER_PORT"] && request.env["SERVER_PORT"] != 80 - default_url_options[:port] ||= request.env["SERVER_PORT"] - end - default_url_options[:protocol] ||= request.protocol - end + default_url_options[:only_path] ||= true hls.each {|listener| response << listener.send(hook, context)} end end |