Posts

Showing posts with the label Navigation

Can Lightning:navigation Be Used In Communities

Answer : lightning:navigation is not supported in communities .Take a look at Summer18 release notes here that clearly mentions below These resources aren’t supported in other containers, such as Lightning Components for Visualforce, Lightning Out, or Communities. This is true even if you access these containers inside Lightning Experience or the Salesforce mobile app. Update: With Recent releases it is now supported in lightning communities as well . There's been an update for this since the best answer was posted and it's now possible to navigate around at your heart's content. Here's how: On the component: <!-- exampleComponent.cmp --> <aura:component implements="forceCommunity:availableForAllPageTypes" access="global" > <lightning:navigation aura:id="navService"/> <!-- Your content here --> <lightning:button label="Navigate To Page" variant="Neutral" onclick=...