aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
})