function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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. 

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)