update URL test to wc-admin#/

This commit is contained in:
Ron Rennick 2019-06-20 10:49:25 -03:00
parent 46ef804ae4
commit a05daef8d7
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 ( 'http' === href.substr( 0, 4 ).toLowerCase() ) {
if ( href.length && href.indexOf( 'wc-admin#/' ) <= 0 ) {
event.preventDefault();
window.open( href, '_blank' );
}