Commit 4be1c6da authored by csillag's avatar csillag

Fixed a bug: when clicking on a link, the content opened in the iframe. Now it opens in a new tab.

parent bee7fc39
......@@ -562,7 +562,7 @@ class Hypothesis extends Annotator
# so that it leaves the inserted links intact
safe_text = Handlebars.Utils.escapeExpression(text)
rendered_text = safe_text.replace /(https?:\/\/[^\s]+)/g, (match) ->
"<a href=\"" + match + "\">" + match + "</a>"
"<a target=\"_blank\" href=\"" + match + "\">" + match + "</a>"
annotation.rendered_text = rendered_text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment