diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-05 10:43:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-05 10:43:45 +0000 |
commit | 5f4ba3d6d5a714510eb8f8b14c0b498d0cb0d3e0 (patch) | |
tree | b8ad383148994f5384794d949d5742076ce96655 | |
parent | b12be8025d18156cca165e180862a8ebc9c89ada (diff) | |
download | redmine-5f4ba3d6d5a714510eb8f8b14c0b498d0cb0d3e0.tar.gz redmine-5f4ba3d6d5a714510eb8f8b14c0b498d0cb0d3e0.zip |
Fixed relative "source" links in email notifications (#3483).
Patch by William Baum.
git-svn-id: http://svn.redmine.org/redmine/trunk@13219 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9cb5b9687..f728010c2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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}, |