diff options
Diffstat (limited to 'web/react/utils/text_formatting.jsx')
-rw-r--r-- | web/react/utils/text_formatting.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/text_formatting.jsx b/web/react/utils/text_formatting.jsx index 43b212484..b8ed58258 100644 --- a/web/react/utils/text_formatting.jsx +++ b/web/react/utils/text_formatting.jsx @@ -97,7 +97,7 @@ function autolinkUrls(text, tokens) { const alias = `MM_LINK${index}`; var target = 'target="_blank"'; - if (url.lastIndexOf(Utils.getTeamURLFromAddressBar()) === 0) { + if (url.lastIndexOf(Utils.getTeamURLFromAddressBar(), 0) === 0) { target = ''; } |