diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-08 09:14:13 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-08 09:14:13 -0700 |
commit | d412144f88a24925af8500d9b1b7535e518a3eb6 (patch) | |
tree | 47bf73765f13d1d9ef2d45a66ee3f5e6ea123c39 /web/react/utils/markdown.jsx | |
parent | f548e0ffb9a6b956b9732ae1ceab58a54b03d203 (diff) | |
download | chat-d412144f88a24925af8500d9b1b7535e518a3eb6.tar.gz chat-d412144f88a24925af8500d9b1b7535e518a3eb6.tar.bz2 chat-d412144f88a24925af8500d9b1b7535e518a3eb6.zip |
Adding removing blank target for browser links
Diffstat (limited to 'web/react/utils/markdown.jsx')
-rw-r--r-- | web/react/utils/markdown.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index 074d36b4b..78d2b801d 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.indexOf(Utils.getTeamURLFromAddressBar()) === 0) { + if (outHref.lastIndexOf(Utils.getTeamURLFromAddressBar()) === 0) { output += '>'; } else { output += ' target="_blank">'; |