From 2337fe236e6afe0df3cfe4b0a7a0f5a88c41e033 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 25 Apr 2016 10:46:34 -0400 Subject: Fixed external links to open in a new tab (#2793) --- webapp/utils/markdown.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/utils/markdown.jsx') diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index f2b5bcc39..fe117274b 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -142,7 +142,7 @@ class MattermostMarkdownRenderer extends marked.Renderer { if (outHref.startsWith(global.location.origin)) { output += 'data-link="' + outHref.substring(global.location.origin.length) + '"'; } else { - output += 'href="' + outHref + '"'; + output += 'href="' + outHref + '" target="_blank"'; } if (title) { -- cgit v1.2.3-1-g7c22