Fixed that links for relations in notifications do not include hostname (#15677).

git-svn-id: http://svn.redmine.org/redmine/trunk@12415 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-12-15 10:32:03 +00:00
parent c6fc1a8047
commit 13756eb3a8
3 changed files with 14 additions and 3 deletions

View File

@@ -79,7 +79,8 @@ module ApplicationHelper
subject = truncate(subject, :length => options[:truncate])
end
end
s = link_to text, issue_path(issue), :class => issue.css_classes, :title => title
only_path = options[:only_path].nil? ? true : options[:only_path]
s = link_to text, issue_path(issue, :only_path => only_path), :class => issue.css_classes, :title => title
s << h(": #{subject}") if subject
s = h("#{issue.project} - ") + s if options[:project]
s