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

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-02-28 10:36:45 +01:00
коммит произвёл George Goldberg
родитель 6ff350380b
Коммит da902ef8ba

Просмотреть файл

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