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;