Overview
Page navigation allows you to navigate to standard Salesforce pages like the home page, Chatter, Files, and custom tabs. This is useful for creating custom navigation experiences in your Lightning Web Components.Navigation Types
Named Pages
Navigate to standard Salesforce pages like Home, Chatter, and more
Custom Tabs
Navigate to custom tabs defined in your Salesforce org
Object Home Pages
Navigate to object home pages like Files
Navigate to Home Page
Navigate to the Salesforce home page using thestandard__namedPage type.
Navigate to Chatter Home
Navigate to the Chatter home page.Navigate to Files Home
Navigate to the Files home page using thestandard__objectPage type.
Files home uses
standard__objectPage with ContentDocument as the object API name and home as the action.Navigate to Custom Tab
Navigate to a custom tab using thestandard__navItemPage type.
PageReference Types for Pages
standard__namedPage
Navigate to standard Salesforce named pages.Must be
standard__namedPageThe name of the page to navigate to
home- Salesforce home pagechatter- Chatter home page
standard__navItemPage
Navigate to custom tabs.Must be
standard__navItemPageThe API name of the custom tab
standard__objectPage (for home)
Navigate to object home pages.Must be
standard__objectPageThe API name of the object (e.g., ‘ContentDocument’ for Files)
Must be
home for object home pagesSummary Table
| Destination | Type | Attributes |
|---|---|---|
| Home Page | standard__namedPage | pageName: 'home' |
| Chatter | standard__namedPage | pageName: 'chatter' |
| Files | standard__objectPage | objectApiName: 'ContentDocument', actionName: 'home' |
| Custom Tab | standard__navItemPage | apiName: 'YourTabName' |
Headless Action Example
You can also use navigation in headless actions (components without UI that can be invoked from Quick Actions).navigateToRecordHeadlessAction.js
Related Examples
- Navigate to Records - Navigate to record pages
- Navigate to List Views - View filtered lists
