You need to sign in to do that
Don't have an account?
Vandana Rattan 4
Lightning App Redirection
I have built a Lightning app containing a login form component. Now when user clicks on Login button I have to take the user to Registration Page another component. How can I achieve this? I went through Lightning documemntation and came across force:navigateToURL. But what should I specify as URL for the Registration Page?
Or will I have to create a separate app containing Registration page? Kindly help.
Regards
Or will I have to create a separate app containing Registration page? Kindly help.
Regards
I had to implement it by creating event handler, registering and then firing the event.
All Answers
to redirect to the approprirate place.
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.
Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker
I know the URL of a lightning app is :-
cs8.lightning.force.com/[ns]/[AppName].app
How can I form the compnent URL to be passed to navigateToURL function?
In your markup
In your controller, do something like
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.
Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker
I had to implement it by creating event handler, registering and then firing the event.
I am able to navigate to the new component by using "e.force:navigateToComponent" but attributes are not getting passed. Please suggest.
Regards
Apologies for a delayed response. You would have to make your attributes Application level instead of component level. I used this strategy to pass attributes from 1 component to other. But now strangely e.force:navigateToComponent is no longer working.
Regards,
Vandana
Hi Vandana,
Could you please send me the flow of the execution that what you did for force:navigateToURL.
I have stucked in the same place...
Please guide me...