From d2c1d98deb169f2539668d6992207a9e9d83b8dd Mon Sep 17 00:00:00 2001 From: Jonathan Klein Date: Mon, 2 Feb 2015 12:48:47 -0500 Subject: [PATCH] Fixing some of the 404s with SSH style repo URLs (see #19) --- pub/assets/js/hound.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pub/assets/js/hound.js b/pub/assets/js/hound.js index 0097fe96..1a913251 100644 --- a/pub/assets/js/hound.js +++ b/pub/assets/js/hound.js @@ -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; }