From 3f4a0ab33dbb1adb4f5983e2b437330d2eb82a06 Mon Sep 17 00:00:00 2001 From: cel Date: Tue, 31 Jul 2018 08:49:03 -1000 Subject: Fix linkifying private blob links --- lib/render.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/render.js b/lib/render.js index e9fae80..a967ee4 100644 --- a/lib/render.js +++ b/lib/render.js @@ -228,8 +228,12 @@ Render.prototype.toUrl = function (href) { var hash = parts.shift() var key = parts.shift() var fragment = parts.join('#') + parts = hash.split('?') + hash = parts.shift() + query = parts.join('?') if (!u.isRef(hash)) return false return this.opts.blob_base + hash + + (query ? '?' + query : '') + (key ? encodeURIComponent('#' + key) : '') + (fragment ? '#' + fragment : '') case '#': return this.opts.base + 'channel/' + -- cgit v1.2.3