Commit 99a8e30562f1d9bcdcf33f9f7699d61adec4abf9

Authored by Doug Stewart
1 parent f335ace6
Exists in master and in 1 other branch production

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,13 +19,13 @@ module BacktraceLineHelper
19 19
20 def link_to_github(line, text = nil) 20 def link_to_github(line, text = nil)
21 return unless line.app.github_repo? 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 link_to(text || line.file_name, href, :target => '_blank') 23 link_to(text || line.file_name, href, :target => '_blank')
24 end 24 end
25 25
26 def link_to_bitbucket(line, text = nil) 26 def link_to_bitbucket(line, text = nil)
27 return unless line.app.bitbucket_repo? 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 link_to(text || line.file_name, href, :target => '_blank') 29 link_to(text || line.file_name, href, :target => '_blank')
30 end 30 end
31 31