Fixed external links to open in a new tab (#2793)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
5f7675d2f7
Коммит
2337fe236e
@@ -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) {
|
||||
|
||||
Ссылка в новой задаче
Block a user