aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-29 17:13:00 -0400
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-09-29 17:13:00 -0400
commitc7b1a484c3b62b17f138fe05b1c5df92ea8b0db0 (patch)
treec715b9c828c4f1eb7260b644684f94d796cdcaec
parent7c1a82bce70de95f88396fee2c0808af8b9fd6e8 (diff)
downloadpatchfoo-c7b1a484c3b62b17f138fe05b1c5df92ea8b0db0.tar.gz
patchfoo-c7b1a484c3b62b17f138fe05b1c5df92ea8b0db0.zip
Channel links use canonical lowercase
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
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)
}