Open link to help in a new tab (#999)

This commit is contained in:
Mike Stone
2017-01-18 09:40:28 -05:00
committed by Jason Meller
parent 0dbe94573f
commit 53bf49e821
2 changed files with 7 additions and 0 deletions
@@ -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;