Commit 9919b144e84c4cdd63a9a87a7f74fdf90027b95d

Authored by Thomas von Deyen
1 parent d44992ac
Exists in master and in 1 other branch production

Fixes the backtrace url_to_file for redmine tracker.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/issue_trackers/redmine_tracker.rb
... ... @@ -57,7 +57,7 @@ if defined? RedmineClient
57 57 def url_to_file(file_path, line_number = nil)
58 58 # alt_project_id let's users specify a different project for tickets / app files.
59 59 project = self.alt_project_id.present? ? self.alt_project_id : self.project_id
60   - url = "#{self.account}/projects/#{project}/repository/annotate/#{file_path.sub(/^\//,'')}"
  60 + url = "#{self.account.gsub(/\/$/, '')}/projects/#{project}/repository/revisions/#{app.repository_branch}/changes/#{file_path.sub(/\[PROJECT_ROOT\]/, '').sub(/^\//,'')}"
61 61 line_number ? url << "#L#{line_number}" : url
62 62 end
63 63  
... ...