diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-20 22:25:55 -0500 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-02-20 22:25:55 -0500 |
commit | 0ac4adbe515bf050246e466d65b3c3c77b093d6e (patch) | |
tree | 4d50d30cc3b837ecbbb396f3f653e9fdfaf7c3a2 /lib/render.js | |
parent | a48b542363b582519083db1537bef7c776efa174 (diff) | |
download | patchfoo-0ac4adbe515bf050246e466d65b3c3c77b093d6e.tar.gz patchfoo-0ac4adbe515bf050246e466d65b3c3c77b093d6e.zip |
Handle links to search queries
Diffstat (limited to 'lib/render.js')
-rw-r--r-- | lib/render.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/render.js b/lib/render.js index fa4359c..0cc96c6 100644 --- a/lib/render.js +++ b/lib/render.js @@ -108,6 +108,7 @@ Render.prototype.toUrl = function (href) { case '&': return this.opts.blob_base + href case '#': return this.opts.base + encodeURIComponent(href) case '/': return this.opts.base + href.substr(1) + case '?': return this.opts.base + 'search?q=' + encodeURIComponent(href) } var m = /^blobstore:(.*)/.exec(href) if (m) return this.opts.blob_base + m[1] |