Fixed external links to open in a new tab (#2793)

Этот коммит содержится в:
Harrison Healey
2016-04-25 10:46:34 -04:00
коммит произвёл Joram Wilander
родитель 5f7675d2f7
Коммит 2337fe236e

Просмотреть файл

@@ -142,7 +142,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
if (outHref.startsWith(global.location.origin)) { if (outHref.startsWith(global.location.origin)) {
output += 'data-link="' + outHref.substring(global.location.origin.length) + '"'; output += 'data-link="' + outHref.substring(global.location.origin.length) + '"';
} else { } else {
output += 'href="' + outHref + '"'; output += 'href="' + outHref + '" target="_blank"';
} }
if (title) { if (title) {