summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) => {