Skip to content

Commit

Permalink
Fixing some of the 404s with SSH style repo URLs (see hound-search#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jklein committed Feb 2, 2015
1 parent a18edd8 commit d2c1d98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pub/assets/js/hound.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ var Model = {
var info = this.repos[repo],
url = info.url.replace(/\.git$/, ''),
anc = line ? '#L' + line : '';

// Hacky solution to fix _some_ of the 404's when using SSH style URLs
url = url.replace("git@github.com:", 'https://www.github.com/');

return url + '/blob/master/' + path + anc;
}

Expand Down

0 comments on commit d2c1d98

Please sign in to comment.