diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render.js | 4 |
1 files changed, 4 insertions, 0 deletions
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/' + |