From 76b3d8c7d13fe76128ab0ee62753d2e595b78e13 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 27 Feb 2018 14:20:43 -0700 Subject: [PATCH] use non-decodable url --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cc7e252..3d18720 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ module.exports = function (opts) { try { encodedLocation = decodeURIComponent(newLocation); } catch(e) { - encodedLocation = "#/error/?error_message=" + e.toString(); + encodedLocation = newLocation; // "#/error/?error_message=" + e.toString(); } var body = opts.body .replace(/{{\s*HTML_URL\s*}}/ig, escapeHtml(encodedLocation))