Slash command: goto_location not working as expected (#5507)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
6ff350380b
Коммит
da902ef8ba
@@ -133,7 +133,11 @@ export default class CreatePost extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data.goto_location && data.goto_location.length > 0) {
|
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) => {
|
(err) => {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user