You need to sign in to do that
Don't have an account?
Something has gone wrong. Cannot read property 'setParams' of undefined. Please try again.
Hi All,
I am getting the error When i try to fire a event wit following code
I am getting the error When i try to fire a event wit following code
gotoURL : function (component, event, helper) { var urlEvent = $A.get("e.force:navigateToURL"); urlEvent.setParams({ "url": "/006/o" }); urlEvent.fire(); }
$A.get("e.force:navigateToURL"); return undefined
Is there anyone has workaround?
Please check the below link for your reference.
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/ref_force_navigateToURL.htm