Source
force-app/main/default/lwc/navToHome/navToHome.jsforce-app/main/default/lwc/navToChatterHome/navToChatterHome.jsforce-app/main/default/lwc/navToFilesHome/navToFilesHome.jsforce-app/main/default/lwc/navToHelloTab/navToHelloTab.js
Standard Home Page
Chatter Home
Files Home
Custom Navigation Tab
NavigationMixin
Extend your component withNavigationMixin to access navigation capabilities:
PageReference Types
Named Pages
Set to
standard__namedPage for standard Salesforce pagesThe name of the page. Options include:
home- Standard home pagechatter- Chatter home page
Object Home Pages
Set to
standard__objectPage for object home pagesThe API name of the object (e.g., ‘ContentDocument’ for Files)
Set to
home to navigate to the object’s home pageNavigation Items
Set to
standard__navItemPage for custom navigation tabsThe API name of the custom tab or navigation item
Navigation Types Summary
| Destination | Type | Attributes |
|---|---|---|
| Standard Home | standard__namedPage | pageName: 'home' |
| Chatter Home | standard__namedPage | pageName: 'chatter' |
| Files Home | standard__objectPage | objectApiName: 'ContentDocument', actionName: 'home' |
| Custom Tab | standard__navItemPage | apiName: '<TabApiName>' |
Key Features
- Navigate to standard home page
- Navigate to Chatter feed
- Navigate to Files home
- Navigate to custom navigation tabs
- Type-safe navigation with PageReference
