Commit 17fae9ab406edcd25fca186b1abcf4259b894ecb

Authored by Nathan Broadbent
1 parent 066490e2
Exists in master and in 1 other branch production

Fixed GitHub and Bitbucket urls to files

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/models/app.rb
@@ -125,7 +125,7 @@ class App @@ -125,7 +125,7 @@ class App
125 end 125 end
126 126
127 def github_url_to_file(file) 127 def github_url_to_file(file)
128 - "#{github_url}/blob/#{repo_branch + file}" 128 + "#{github_url}/blob/#{repo_branch}/#{file}"
129 end 129 end
130 130
131 def bitbucket_repo? 131 def bitbucket_repo?
@@ -137,7 +137,7 @@ class App @@ -137,7 +137,7 @@ class App
137 end 137 end
138 138
139 def bitbucket_url_to_file(file) 139 def bitbucket_url_to_file(file)
140 - "#{bitbucket_url}/src/#{repo_branch + file}" 140 + "#{bitbucket_url}/src/#{repo_branch}/#{file}"
141 end 141 end
142 142
143 143