use current window for any dashboard URL
This commit is contained in:
parent
a05daef8d7
commit
7dfc3fe240
|
@ -37,7 +37,7 @@ class InboxPanel extends Component {
|
||||||
const { triggerNoteAction } = this.props;
|
const { triggerNoteAction } = this.props;
|
||||||
const href = event.target.href || '';
|
const href = event.target.href || '';
|
||||||
|
|
||||||
if ( href.length && href.indexOf( 'wc-admin#/' ) <= 0 ) {
|
if ( ! href.startsWith( wcSettings.adminUrl ) ) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
window.open( href, '_blank' );
|
window.open( href, '_blank' );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue