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))