We have below code being called from Cancel button on a Lightning component. We have used this lightning component on VF page.
navHome : function (component, event, helper) {
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": "/home/home.jsp"
});
urlEvent.fire();
}
Above is throwing JS error,
This page has an error. You might just need to refresh it. Action failed: CsApp:ConfigSettings$controller$navHome [urlEvent is undefined] Failing descriptor: {CsApp:ConfigSettings$controller$navHome}
What should be the correct way to navigate Home page?