mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Slash command: goto_location not working as expected (#5507)
This commit is contained in:
committed by
George Goldberg
parent
6ff350380b
commit
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) => {
|
||||
|
||||
Reference in New Issue
Block a user