summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2017-02-28 10:36:45 +0100
committerGeorge Goldberg <george@gberg.me>2017-02-28 09:36:45 +0000
commitda902ef8bacb0751c7bd681abdc58039812d6430 (patch)
treefe5a9f207635afd9dae88795149d7e8625d66691 /webapp
parent6ff350380b209266282cff32872f94bb9cd31d57 (diff)
downloadchat-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.jsx6
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) => {