From 56ac0004e5cbe4cbe3305618d1e39e6f2f86ac18 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 5 Sep 2016 09:10:15 +0100 Subject: [PATCH] Use href='#' hack to make link text look like a link --- src/components/views/messages/TextualBody.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index e6ed354f29..6bb1a994d5 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -180,7 +180,8 @@ module.exports = React.createClass({ } }, - onStarterLinkClick: function(starterLink) { + onStarterLinkClick: function(starterLink, ev) { + ev.preventDefault(); // We need to add on our scalar token to the starter link, but we may not have one! // In addition, we can't fetch one on click and then go to it immediately as that // is then treated as a popup! @@ -237,8 +238,7 @@ module.exports = React.createClass({ body = { body }; } else if (content.data && typeof content.data["org.matrix.neb.starter_link"] === "string") { - // FIXME: React replaces this with a because there is no href= - Matthew haaaalp! - body = { body }; + body = { body }; } var widgets;