use current window for any dashboard URL

This commit is contained in:
Ron Rennick 2019-06-26 17:16:54 -03:00
parent a05daef8d7
commit 7dfc3fe240
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class InboxPanel extends Component {
const { triggerNoteAction } = this.props;
const href = event.target.href || '';
if ( href.length && href.indexOf( 'wc-admin#/' ) <= 0 ) {
if ( ! href.startsWith( wcSettings.adminUrl ) ) {
event.preventDefault();
window.open( href, '_blank' );
}