summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-06 10:27:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-07-06 10:27:47 +0000
commit0341094005d2174d31cf86010997edb85a6aaf0b (patch)
treee5e78c362ca091c88d52b7643f73db220134fe79
parent17ce40cf5fcffb2876455040fb2a1d19d7974a89 (diff)
downloadredmine-0341094005d2174d31cf86010997edb85a6aaf0b.tar.gz
redmine-0341094005d2174d31cf86010997edb85a6aaf0b.zip
Merged r13219 (#3483).
git-svn-id: http://svn.redmine.org/redmine/branches/2.5-stable@13221 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index d564e838c..9932686f5 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -860,7 +860,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},