Commit 0c05052f326ff6895164244a3704c19e9a90831f
Exists in
master
and in
1 other branch
Merge pull request #404 from magiclabs/fix-redmine-backtrace-repo-url
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 | ... | ... |