diff options
Diffstat (limited to 'lib/render.js')
-rw-r--r-- | lib/render.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js index e9d4889..63eecd4 100644 --- a/lib/render.js +++ b/lib/render.js @@ -190,7 +190,8 @@ Render.prototype.toUrl = function (href) { switch (href[0]) { case '%': if (!u.isRef(href)) return false - return this.opts.base + encodeURIComponent(href) + return this.opts.base + + (this.opts.encode_msgids ? encodeURIComponent(href) : href) case '@': if (!u.isRef(href)) return false return this.opts.base + href |