From d412144f88a24925af8500d9b1b7535e518a3eb6 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Thu, 8 Oct 2015 09:14:13 -0700
Subject: Adding removing blank target for browser links

---
 web/react/utils/markdown.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/markdown.jsx')

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">';
-- 
cgit v1.2.3-1-g7c22

