use non-decodable url

This commit is contained in:
AJ ONeal 2018-02-27 14:20:43 -07:00
parent a3f3c4b041
commit 76b3d8c7d1
1 changed files with 1 additions and 1 deletions

View File

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