summaryrefslogtreecommitdiffstats
path: root/webapp/utils/markdown.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-04-25 10:46:34 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-04-25 10:46:34 -0400
commit2337fe236e6afe0df3cfe4b0a7a0f5a88c41e033 (patch)
tree12149313f468186ae9023e45483c480c0b93abc2 /webapp/utils/markdown.jsx
parent5f7675d2f757b3bd8efe1e3bd1273e44a3a3308a (diff)
downloadchat-2337fe236e6afe0df3cfe4b0a7a0f5a88c41e033.tar.gz
chat-2337fe236e6afe0df3cfe4b0a7a0f5a88c41e033.tar.bz2
chat-2337fe236e6afe0df3cfe4b0a7a0f5a88c41e033.zip
Fixed external links to open in a new tab (#2793)
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r--webapp/utils/markdown.jsx2
1 files changed, 1 insertions, 1 deletions
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) {