Newer Version Available
Programmatic Navigation Actions
Some features require more complicated navigation designs. For the most complete control
of your user interface and navigation scheme, define navigation actions using
JavaScript.
In Lightning web components, navigation actions are built using the navigation service, provided by the lightning/navigation module. See Navigate to Different Page Types in the Lightning Web Components Developer Guide to get started.
This module is supported for use in LWC Offline-enabled mobile apps. Each different Salesforce mobile app has different features, and each implements support for the navigation service independently. As a consequence, there are some differences in available and supported navigation actions. See the documentation for your specific mobile apps for more details.