How would one navigate between lightning apps using the Salesforce1 javascript functions?
I see actions for navigateToURL and navigateToSobject, etc, but not NavigateToLightningApp?
How would one navigate between lightning apps using the Salesforce1 javascript functions?
I see actions for navigateToURL and navigateToSobject, etc, but not NavigateToLightningApp?
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
Lightning Apps are meant to be single page Apps, not multi-page apps. If a means were available to navigate from one app to another other than through the SF1 Menu, that would effectively make them multi-page apps. To the best of my knowledge, what you're asking for does not exist at this time.
navigateToSObject
or navigateToList
, but there isn't an equivalent when it's a Lightning page unless you use an Action.
Commented
Jul 20, 2015 at 15:12
navigateToComponent
was the closest we had, and it's gone now. Right now your only option is to mount your Lightning Page or Component as a tab, and handle all navigation yourself by dynamically creating the components you desire.
Coming soon (hopefully) will be the ability to mount a lightning component as a recordTab
or as a quick action, but we don't have that yet.