+ Start a Discussion
Pramodh KumarPramodh Kumar 

lightning out event

force:navigateToURL is not working in lightning out application. Is there any workaround? Please let me know if anyone has any solution. 

Thanks
Pramodh
James LoghryJames Loghry

The force:* events are only available in the "lightning context" meaning LEX record pages, community builder templates, etc.  Unfortunately they're not available in lightning:out.

Instead, you can try either a regular old anchor tag (<a href... />) or you could also try window.location.href (I believe this still works with locker service, but I could be wrong)