Skip to main content
laxman singh ha fatto una domanda in #Lightning Experience
Hi , 

I have created a lightning component and I want to provide a button on component to logout from Salesforce 1 app.

I have implemented all solution provided in internet but unable to redirect user to login page.

Please Help.

Thanks in Advance
4 risposte
  1. 14 mar 2019, 07:14
    Hi Laxman,

    As far as I understand your question. I'll recommend you to create a logout button using onclick attribute and calling the controller. In controller you can use window.open and can pass salesforce home page url in it because as far as I see the functionality of logout button that its taking us to salesforce homepage only. 

    I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

    Thanks and Regards,

    Deepali Kulshrestha