Defect #1589
link to a specific revision of a file doesn't work from revisions/show (fix included)
| Status: | Closed | Start: | 2008-07-06 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | SCM | |||
| Target version: | 0.8 | |||
| Affected version: | Resolution: | Fixed |
||
Description
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? %></td>
<td align="right">