Commit b0ada3e107a2d04ab40e36676043ab64bf641d1e

Authored by Vasiliy Ermolovich
2 parents f335ace6 99a8e305
Exists in master and in 1 other branch production

Merge pull request #296 from amaabca/backtrace-links

Backtrace link to correct source path and file
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/helpers/backtrace_line_helper.rb
... ... @@ -19,13 +19,13 @@ module BacktraceLineHelper
19 19  
20 20 def link_to_github(line, text = nil)
21 21 return unless line.app.github_repo?
22   - href = "%s#L%s" % [line.app.github_url_to_file(line.file), line.number]
  22 + href = "%s#L%s" % [line.app.github_url_to_file(line.decorated_path + line.file_name), line.number]
23 23 link_to(text || line.file_name, href, :target => '_blank')
24 24 end
25 25  
26 26 def link_to_bitbucket(line, text = nil)
27 27 return unless line.app.bitbucket_repo?
28   - href = "%s#cl-%s" % [line.app.bitbucket_url_to_file(line.file), line.number]
  28 + href = "%s#cl-%s" % [line.app.bitbucket_url_to_file(line.decorated_path + line.file_name), line.number]
29 29 link_to(text || line.file_name, href, :target => '_blank')
30 30 end
31 31  
... ...