Skip to main content

Lightning Navigation

Explore practical guides and implementation patterns for this topic.

Posts

Topic LWC
Lightning Web Components

How to Navigate Between Lightning Web Components in Salesforce Using NavigationMixin

In plain words: Navigating from one LWC to another in Salesforce means programmatically redirecting the user to a target component or custom Lightning tab using the standard NavigationMixin service from the lightning/navigation module. In modern Salesforce applications, directing users between screens with custom state and parameters is essential. By applying the NavigationMixin class decorator to your Lightning Web Component, you can generate dynamic page references and trigger smooth page transitions directly inside Lightning Experience and the Salesforce Mobile App.
Read article
Topic LWC
Lightning Web Components

How to Use Navigation Service (NavigationMixin) in Salesforce LWC

In plain words: The Navigation Service in Salesforce Lightning Web Components (LWC) is a platform utility that redirects users to record pages, list views, standard object homepages, custom tabs, or external URLs using a standardized descriptor called a PageReference . Hardcoding URLs in Salesforce components breaks across sandboxes, production environments, Experience Cloud sites, and the Salesforce Mobile App. The NavigationMixin module from lightning/navigation provides an environment-agnostic routing framework that ensures your links and redirects work smoothly across every device and deployment target.
Read article