I'm using the following code to open a report using a LWC card.
JS controller
navigateToReport(event) {
// Navigate to the Contact object's Recent list view.
this[NavigationMixin.Navigate]({
type: 'standard__recordPage',
attributes: {
recordId: this.settings.businessStrikesReportId,
objectApiName: 'Report',
actionName: 'view'
},
state: {
fv0: this.account.data.fields.Id.value,
fv1: event.target.dataset.id
}
});
}
HTML template
<div class="slds-truncate">
<a onclick={navigateToReport} data-id="Active">Active Business Strikes: </a>
</div>
When I test this, the report opens in the same tab. I tried using target="_blank" in but it does the same.
Is there any other way to achieve this?