Navigate To Object Home

force:navigateToObjectHome

Navigates from a custom component to the specified object home.

This event is deprecated. We recommend using the lightning:navigation component with the standard__objectPage page type instead.

For Use In

Lightning Experience, Experience Builder Sites, Salesforce Mobile App

This event enables you to navigate to the object home specified by the scope attribute.

We recommend using lightning:navigation component with the standard__objectPage page type instead.

For more information, see the Lightning Aura Components Developer Guide.

To navigate to an object home, set the object name on the scope attribute and fire the event. This example displays the home page for a custom object.

This event is handled by the one.app container. It’s supported in Lightning Experience, the Salesforce mobile app, and Aura-based Experience Builder sites.

NameDescriptionTypeDefaultRequired
resetHistorySet to true to reset history.booleanfalse
scopeThe name or key prefix of entity to display object home for.stringYes