From 1d4db3a4721841ca576ebd8585c263388262a064 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 9 Mar 2017 22:28:50 -0500 Subject: Searching for a channel navigates to it --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/serve.js b/lib/serve.js index c3ceee7..eef11d0 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -233,7 +233,7 @@ Serve.prototype.search = function (ext) { if (u.isRef(maybeId)) searchQ = maybeId } - if (u.isRef(searchQ)) { + if (u.isRef(searchQ) || searchQ[0] === '#') { self.res.writeHead(302, { Location: self.app.render.toUrl(searchQ) }) -- cgit v1.2.3