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

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

  • is there any solution or work around for it? I have the exact problem. – Saumya Ranjan Satapathy Oct 29 '17 at 20:29

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.

  • not buying that one. Gmail and Gcal are SPAs, but I can navigate between them without issue. Since there's a SF1 "tab", and I can hit reload in the /one/one.app option, it has a URL somewhere. – Shane McLaughlin Jul 20 '15 at 14:58
  • I understand what you're saying, but SF hasn't added the functionality you speak of at this time. There's clearly an underlying Menu Command that will take you to an Object that's similar to navigateToSObject or navigateToList, but there isn't an equivalent when it's a Lightning page unless you use an Action. – crmprogdev Jul 20 '15 at 15:12
  • I'd settle for how to parse the url schema, then we could use navigateToURL() – Shane McLaughlin Jul 20 '15 at 15:14
  • But as you already know, navigateToURL() won't work for you. You've got to get to the lightning subdomain to use it and I don't believe it will allow you to do that other than via an Action. – crmprogdev Jul 20 '15 at 15:26
  • is there any information recently about this topic? – danigonlinea Dec 18 '15 at 12:19

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.

  • any new news for this topic now? I mean this would be a really useful feature because, in this moment, I have multi-pages and we moving from one to another in VisualForce classic. – danigonlinea Dec 18 '15 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.