diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index ce33a60872..631caadac2 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -84,7 +84,10 @@ module.exports = React.createClass({ findLink: function(nodes) { for (var i = 0; i < nodes.length; i++) { var node = nodes[i]; - if (node.tagName === "A" && node.getAttribute("href")) { + if (node.tagName === "A" && node.getAttribute("href") && + (node.getAttribute("href").startsWith("http://") || + node.getAttribute("href").startsWith("https://"))) + { return node; } else if (node.children && node.children.length) {