diff --git a/src/static/js/domline.js b/src/static/js/domline.js index 7b9e31ae..69508507 100644 --- a/src/static/js/domline.js +++ b/src/static/js/domline.js @@ -185,7 +185,7 @@ domline.createDomLine = function(nonEmpty, doesWrap, optBrowser, optDocument) { if (href) { - if(!~href.indexOf("http")) // if the url doesn't include http or https etc prefix it. + if(!~href.indexOf("://") && !~href.indexOf("mailto:")) // if the url doesn't include a protocol prefix, assume http { href = "http://"+href; }