Vote #63563
完了link to a specific revision of a file doesn't work from revisions/show (fix included)
開始日:
2008/07/06
期日:
進捗率:
0%
予定工数:
Redmineorg_URL:
category_id:
3
version_id:
2
issue_org_id:
1589
author_id:
1521
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
説明
Redmine trunk / mysql / svn
The links to a specific revision of a file are escaped (apache2 proxy balancer blocks them and says file does not exist). Example:
http://server/repositories/entry/id/vendor%2Fplugins%2Fhaml%2Finit.rb
instead of
http://server/repositories/entry/id/vendor/plugins/haml/init.rb
--- app/views/repositories/revision.rhtml (revision 1643) +++ app/views/repositories/revision.rhtml (working copy) @@ -50,7 +50,7 @@ <% if change.action == "D" -%> <%= change.path -%> <% else -%> - <%= link_to change.path, :action => 'entry', :id => @project, :path => without_leading_slash(change.relative_path), :rev => @changeset.revision -%> + <%= link_to change.path, :action => 'entry', :id => @project, :path => to_path_param(without_leading_slash(change.relative_path)), :rev => @changeset.revision -%> <% end -%> <%= "(#{change.revision})" unless change.revision.blank? %> いいね!0journals
Applied in r1648.
--------------------------------------------------------------------------------いいね!0