aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-24 20:12:03 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-24 20:12:03 -0700
commitb957f72a8af1e561c82da17921147191a03cf9f1 (patch)
tree1bb860625d80d168873eca907d2ac7638dea35aa /lib/render.js
parent53835071d2485b1589498e802d847ce7d69f901a (diff)
downloadpatchfoo-b957f72a8af1e561c82da17921147191a03cf9f1.tar.gz
patchfoo-b957f72a8af1e561c82da17921147191a03cf9f1.zip
Fix linking to ids with query parameters
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index dbfd673..e6da13c 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -222,7 +222,7 @@ Render.prototype.toUrl = function (href) {
return this.opts.base +
(this.opts.encode_msgids ? encodeURIComponent(href) : href)
case '@':
- if (!u.isRef(href)) return false
+ if (!u.isRef(href.replace(/\?.*/, ''))) return false
return this.opts.base + href
case '&':
var parts = href.split('#')