Slash command: goto_location not working as expected (#5507)

This commit is contained in:
Carlos Tadeu Panato Junior
2017-02-28 10:36:45 +01:00
committed by George Goldberg
parent 6ff350380b
commit da902ef8ba

View File

@@ -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) => {