From b957f72a8af1e561c82da17921147191a03cf9f1 Mon Sep 17 00:00:00 2001 From: cel Date: Fri, 24 Aug 2018 20:12:03 -0700 Subject: Fix linking to ids with query parameters --- lib/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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('#') -- cgit v1.2.3