Commit 99a8e30562f1d9bcdcf33f9f7699d61adec4abf9
1 parent
f335ace6
Exists in
master
and in
1 other branch
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 | ... | ... |