summaryrefslogtreecommitdiffstats
path: root/web/react/utils/markdown.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/utils/markdown.jsx')
-rw-r--r--web/react/utils/markdown.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx
index 78d2b801d..aff776d05 100644
--- a/web/react/utils/markdown.jsx
+++ b/web/react/utils/markdown.jsx
@@ -41,7 +41,7 @@ export class MattermostMarkdownRenderer extends marked.Renderer {
output += ' title="' + title + '"';
}
- if (outHref.lastIndexOf(Utils.getTeamURLFromAddressBar()) === 0) {
+ if (outHref.lastIndexOf(Utils.getTeamURLFromAddressBar(), 0) === 0) {
output += '>';
} else {
output += ' target="_blank">';