mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fixed external links to open in a new tab (#2793)
This commit is contained in:
committed by
Joram Wilander
parent
5f7675d2f7
commit
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) {
|
||||
|
||||
Reference in New Issue
Block a user