From c7b1a484c3b62b17f138fe05b1c5df92ea8b0db0 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 29 Sep 2019 17:13:00 -0400 Subject: Channel links use canonical lowercase --- lib/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/render.js b/lib/render.js index c470ff2..f3dcfe0 100644 --- a/lib/render.js +++ b/lib/render.js @@ -268,7 +268,7 @@ Render.prototype.toUrl = function (href) { + (key ? encodeURIComponent('#' + key) : '') + (fragment ? '#' + fragment : '') case '#': return this.opts.base + 'channel/' + - encodeURIComponent(href.substr(1)) + encodeURIComponent(href.substr(1).toLowerCase()) case '/': return this.opts.base + href.substr(1) case '?': return this.opts.base + 'search?q=' + encodeURIComponent(href) } -- cgit v1.2.3