diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-03-06 14:00:40 +0100 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-03-06 10:00:40 -0300 |
commit | 15f54a1078bf272ef2ebb9bf29d039904fde6edf (patch) | |
tree | c4ab8a265f521036ce7df728cd3a070bd15c2c49 /webapp | |
parent | 615d116c45923ad4efc4170d150002c599a48fd9 (diff) | |
download | chat-15f54a1078bf272ef2ebb9bf29d039904fde6edf.tar.gz chat-15f54a1078bf272ef2ebb9bf29d039904fde6edf.tar.bz2 chat-15f54a1078bf272ef2ebb9bf29d039904fde6edf.zip |
fix bug when use /msg command it open the channel in a new tab (#5644)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/create_post.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index ef85aca12..faa880acc 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -133,7 +133,7 @@ export default class CreatePost extends React.Component { } if (data.goto_location && data.goto_location.length > 0) { - if (data.goto_location.startsWith('/')) { + if (data.goto_location.startsWith('/') || data.goto_location.includes(window.location.hostname)) { browserHistory.push(data.goto_location); } else { window.open(data.goto_location); |