diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-02-28 10:36:45 +0100 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-02-28 09:36:45 +0000 |
commit | da902ef8bacb0751c7bd681abdc58039812d6430 (patch) | |
tree | fe5a9f207635afd9dae88795149d7e8625d66691 /webapp | |
parent | 6ff350380b209266282cff32872f94bb9cd31d57 (diff) | |
download | chat-da902ef8bacb0751c7bd681abdc58039812d6430.tar.gz chat-da902ef8bacb0751c7bd681abdc58039812d6430.tar.bz2 chat-da902ef8bacb0751c7bd681abdc58039812d6430.zip |
Slash command: goto_location not working as expected (#5507)
Diffstat (limited to 'webapp')
-rw-r--r-- | webapp/components/create_post.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index 7bdcf6888..ef85aca12 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -133,7 +133,11 @@ export default class CreatePost extends React.Component { } if (data.goto_location && data.goto_location.length > 0) { - browserHistory.push(data.goto_location); + if (data.goto_location.startsWith('/')) { + browserHistory.push(data.goto_location); + } else { + window.open(data.goto_location); + } } }, (err) => { |