summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-07 07:32:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-07 07:32:25 +0000
commitd347fd4d39ff7617e26b676505de16a552cb2cdd (patch)
treeadd91314e04a90f6b83d926f643967857a77fc43 /lib
parenta3286e364a31d56d7b9a7b0bf94c3300b2a5aa8a (diff)
downloadredmine-d347fd4d39ff7617e26b676505de16a552cb2cdd.tar.gz
redmine-d347fd4d39ff7617e26b676505de16a552cb2cdd.zip
link_to in Redmine::Hook::ViewListener omits relative url root (#19024).
git-svn-id: http://svn.redmine.org/redmine/trunk@13960 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/hook.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb
index bc8dc7e1c..7f518d8d4 100644
--- a/lib/redmine/hook.rb
+++ b/lib/redmine/hook.rb
@@ -96,7 +96,7 @@ module Redmine
# Default to creating links using only the path. Subclasses can
# change this default as needed
def self.default_url_options
- {:only_path => true }
+ {:only_path => true, :script_name => Redmine::Utils.relative_url_root}
end
# Helper method to directly render using the context,