summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2016-09-30 14:19:00 +0100
committerenahum <nahumhbl@gmail.com>2016-09-30 10:19:00 -0300
commit29a3706ec3c3523ac8bf552c68e675f0c956986c (patch)
treecec4d9c338f3d33d3a17c8d68c2f3a9b0156840b /webapp/utils/utils.jsx
parent49c6b42d381e5607a77c6c97761aabd38774b196 (diff)
downloadchat-29a3706ec3c3523ac8bf552c68e675f0c956986c.tar.gz
chat-29a3706ec3c3523ac8bf552c68e675f0c956986c.tar.bz2
chat-29a3706ec3c3523ac8bf552c68e675f0c956986c.zip
PLT-4307 - fix !channel link hrefs. (#4122)
* PLT-4307 - fix !channel link hrefs. * Fix style.
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index ffc676e63..25a9dfa7d 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -1374,6 +1374,7 @@ export function handleFormattedTextClick(e) {
browserHistory.push(linkAttribute.value);
}
} else if (channelMentionAttribute) {
+ e.preventDefault();
browserHistory.push('/' + TeamStore.getCurrent().name + '/channels/' + channelMentionAttribute.value);
}
}