function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
akshay desai 9akshay desai 9 

how to redirect to lightning component from VF page onclick of button

I have 1 VF page with lookup & "Done" command button
i have requirement of by clicking done button it will navigate to aura component & show data of that record to component
VinayVinay (Salesforce Developers) 
Hi Akshay,

Review below link which has working example and help you with your implementation.

https://unofficialsf.com/load-a-visualforce-page-with-parameters-in-lightning/

Thanks,
Vinay Kumar
SSP AdminSSP Admin
Hello Akshay Desai

It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!

https://jbshelpdesk.secure.force.com

Thanks,
Jarvis SFDC team
SSP AdminSSP Admin
Hello Akshay Desai

It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!

https://jbshelpdesk.secure.force.com

Thanks,
Jarvis SFDC team
David Zhu 🔥David Zhu 🔥
1. Make sure your Aura Component has implmented lightning:isUrlAddressable interface.
 
<aura:component implements="lightning:isUrlAddressable" ...........>

2. Add redirect method on your Done button action as below:
public Pagereference redirect()
    {
       //let's say your aura component is called "TestEditRecord"
        Pagereference pageRef = new PageReference('/lightning/cmp/c__TestEditRecord');  

        pageRef.setRedirect(true);
        return pageRef;
    }

 
SSP AdminSSP Admin
Hi Akshay Desai,
It looks like our team of experts can help you resolve this ticket. We have Salesforce global help-desk support and you can log a case and our Customer Success Agents will help you solve this issue. You can also speak to them on live chat. Click on the below link to contact our help-desk. Trust me it is a support service that we are offering for free!

https://jbshelpdesk.secure.force.com

Thanks,
Jarvis SFDC team