Skip to main content
laxman singh 님이 #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개
  1. 2019년 3월 14일 오전 7: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