diff --git a/plugins/woocommerce-admin/client/header/activity-panel/panels/inbox.js b/plugins/woocommerce-admin/client/header/activity-panel/panels/inbox.js index 035ad517555..b5e5775929d 100644 --- a/plugins/woocommerce-admin/client/header/activity-panel/panels/inbox.js +++ b/plugins/woocommerce-admin/client/header/activity-panel/panels/inbox.js @@ -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' ); }