This article will explain how to use ‘e.force:navigateToURL’ lightning component to navigate the system to any URL (visualforce page, record, any custom URL). Syntax of ‘e.force:navigateToURL’ var urlEvent = $A.get("e.force:navigateToURL"); urlEvent.setParams({ "url": "/" + recordId , "isredirect": "true" }); urlEvent.fire(); Description of the parameters, 1. URl – Set this parameter to the required URL that you want to redirect, in this example ‘recordId’ is my variable with has the Id of the record I want to redirect. We can use static URL (e.g https://www.salesforce.com ) as well. 2. Isredirect – This is optional, this flag will not...
This blog will help to understand salesforce and how to start with salesforce apps.