From d81825f4b4da83bd0376ac916107f425872eee7b Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 6 May 2017 15:15:56 -1000 Subject: Serve channels under /channel/ instead of /%23 --- lib/render.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/render.js') diff --git a/lib/render.js b/lib/render.js index 316ad2f..36dba2f 100644 --- a/lib/render.js +++ b/lib/render.js @@ -146,7 +146,8 @@ Render.prototype.toUrl = function (href) { case '&': if (!u.isRef(href)) return false return this.opts.blob_base + href - case '#': return this.opts.base + encodeURIComponent(href) + case '#': return this.opts.base + 'channel/' + + encodeURIComponent(href.substr(1)) case '/': return this.opts.base + href.substr(1) case '?': return this.opts.base + 'search?q=' + encodeURIComponent(href) } -- cgit v1.2.3