Check below for more details about navigation service in Lightning web
components
Sample Code
//Navigate to visualforce page navigateToVFPage() { this[NavigationMixin.GenerateUrl]({ type: 'standard__webPage', attributes: { url: '/apex/SampleVFPage?id=' + recId } }).then(vfURL => { window.open(vfURL); }); }
Hi,
ReplyDeleteCould you please tell me how can we define URL in vfURL, actually I am new to LWC so dont know.