open certain internal paths in default browser

This commit is contained in:
Dean Whillier
2019-03-25 22:23:23 -04:00
parent deb8608874
commit f3204443f9

View File

@@ -99,6 +99,9 @@ export default class MattermostView extends React.Component {
if (Utils.isInternalURL(destURL, currentURL, this.state.basename)) {
if (destURL.path.match(/^\/api\/v[3-4]\/public\/files\//)) {
ipcRenderer.send('download-url', e.url);
} else if (destURL.path.match(/^\/help\//)) {
// continue to open special case internal urls in default browser
shell.openExternal(e.url);
} else {
// New window should disable nodeIntegration.
window.open(e.url, remote.app.getName(), 'nodeIntegration=no, show=yes');