Navigating to a lightning app–what’s the URL?

How would one navigate between lightning apps using the Salesforce1 javascript functions?

I see actions for navigateToURL and navigateToSobject, etc, but not NavigateToLightningApp?

Answer

Per the documentation on pageReference types it is possible to navigate to an app using URLs with the app’s developer name such as /lightning/app/standard__LightningSales.

A few other examples from the documentation:

URL Format

/lightning/app/{appTarget}{...pageRef}

URL Format Examples

Navigate to the app’s homepage using the appId

/lightning/app/06mRM0000008dNrYAI

Navigate to an object record’s page in the app using the appId

/lightning/app/06mRM0000008dNrYAI/o/Case/home

Navigate to the app’s homepage using the appDeveloperName

/lightning/app/standard__LightningSales

Navigate to an object record’s page in the app using the appDeveloperName

/lightning/app/standard__LightningSales/o/Case/home

Attribution
Source : Link , Question Author : Shane McLaughlin , Answer Author : Mark Pond

Leave a Comment