Open link to help in a new tab (#999)
This commit is contained in:
@@ -138,6 +138,7 @@ export default (admin) => {
|
||||
name: 'Help',
|
||||
location: {
|
||||
regex: /^\/help/,
|
||||
pathname: 'https://docs.kolide.co/using-kolide/master',
|
||||
},
|
||||
subItems: [],
|
||||
},
|
||||
|
||||
@@ -35,6 +35,12 @@ export class CoreLayout extends Component {
|
||||
|
||||
const { dispatch } = this.props;
|
||||
|
||||
if (path.indexOf('http') !== -1) {
|
||||
global.window.open(path, '_blank');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
dispatch(push(path));
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user