aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 22:28:50 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 22:28:50 -0500
commit1d4db3a4721841ca576ebd8585c263388262a064 (patch)
treec5d628cf24283efbf53f33151d14a56b8c834f5f
parent94cfd590fe8310ea40707a5e2527503940e80686 (diff)
downloadpatchfoo-1d4db3a4721841ca576ebd8585c263388262a064.tar.gz
patchfoo-1d4db3a4721841ca576ebd8585c263388262a064.zip
Searching for a channel navigates to it
-rw-r--r--lib/serve.js2
1 files changed, 1 insertions, 1 deletions
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)
})