Salesforce Fact #515 | Get Community context for LWC

Suppose we need to check whether the current context of the LWC is in community or internal page. We can use a checkbox and set it to true while adding the LWC in community page and for internal, keep it as false.

Attached is the screenshot.




Comments

Popular posts from this blog