I am trying to navigate to a Newly setup tab using a lightning component. Component is configured to be used with RecordHome and contains recordId attribute. When navigating to the component, I would like to pass-in a parameter. I tried passing using using URL while firing e.force:navigateToURL event - but it seems like that's NOT going to work. Any help is greatly appreciated.

Thanks in advance


There is an event called force:navigateToComponent. This might help you. But it does not have any documentation.

For example:-

navigateToRollCall : function(component, event, helper) {
var evt = $A.get("e.force:navigateToComponent");
        componentDef: "c:AttendanceRollCall",
        componentAttributes: {
            programId: component.get("v.program.Id")
  • It is not wise to use undocumented event.After some time it might not work,when salesforce removes it from public access without notifying. – Praveen Jul 12 '16 at 15:02
  • You are always welcome Bhuvan. For time being, this is the only method. – Junaid P Khader Jul 13 '16 at 4:29

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.