1

Is it safe to use window.open() in Lightning Components? This lightning component is going to be used in a Lightning Community.

I cannot use force:navigateToURL as it is giving some other issues.

1
  • what issues are related to 'force:navigateToURL' ? can you further expand on your use case? are you opening external links, salesforce records within the communtiy, salesforcec LEX?
    – glls
    Sep 13, 2018 at 15:20

1 Answer 1

3

You are allowed to access any function permitted by Locker Service. window.open is permitted by Locker Service and should work just fine. I recommend you bookmark the above link so you can check which operations are permitted when in doubt.

1
  • Thank you very much @sfdxfox. That is really a useful resource.
    – ajinkyah
    Sep 13, 2018 at 16:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .