]> source.dussan.org Git - redmine.git/commitdiff
Fixed relative "source" links in email notifications (#3483).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 Jul 2014 10:43:45 +0000 (10:43 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 5 Jul 2014 10:43:45 +0000 (10:43 +0000)
Patch by William Baum.

git-svn-id: http://svn.redmine.org/redmine/trunk@13219 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 9cb5b9687e426d10411958c3198ebb88ab53a995..f728010c2921e51a0663bb944ae8d8c4930c0bde 100644 (file)
@@ -863,7 +863,7 @@ module ApplicationHelper
                 if repository && User.current.allowed_to?(:browse_repository, project)
                   name =~ %r{^[/\\]*(.*?)(@([^/\\@]+?))?(#(L\d+))?$}
                   path, rev, anchor = $1, $3, $5
-                  link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:controller => 'repositories', :action => (prefix == 'export' ? 'raw' : 'entry'), :id => project, :repository_id => repository.identifier_param,
+                  link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => (prefix == 'export' ? 'raw' : 'entry'), :id => project, :repository_id => repository.identifier_param,
                                                           :path => to_path_param(path),
                                                           :rev => rev,
                                                           :anchor => anchor},