Navigate opening in new tab

Use NavigationMixin -


this[NavigationMixin.GenerateUrl]({

    type: "standard__recordPage",

    attributes: {

        recordId: sRecordId,

        objectApiName: 'yourObject__c',

        actionName: 'view'

    }

}).then(url => {

    window.open(url, "_blank");

});

Comments