summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/create_post.jsx2
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);