Forum Discussion

dhiraj_gophane's avatar
11 years ago

How to implement sign out link in custom component

Hi,

Currently we are using a drop down which contains sign out as one field.

On click we are redirecting it to sign out page.

but it gives error on ViewProfilePage.

Can anyone give any different approach?

  • YuriK's avatar
    YuriK
    Khoros Expert
    Hey dhiraj,

    What error are you seeing? Do you mind posting the code for the drop down here?

    Thank you,

    Yuri
    • Hi Yurik,
      I'm using following lines of code.

       

      <a href="t5/community/page.logoutpage?t:cp=authentication/contributions/unticketedauthenticationactions&amp;dest_url=http%3A%2F%2Fpfxaw45692.stage.lithium.com%2F">Sign Out</a>


      it works fine on home page.
      But if anyone is on any other page (e.g. blogPage, ViewProfilePage, etc...) and clicks on the sign out link in drop down it throws following error.

      "The core node you are trying to access was not found, it may have been deleted. Please refresh your original page and try the operation again."

      • HaidongG's avatar
        HaidongG
        Lithium Alumni (Retired)

        Hi dhiraj_gophane,

         

        To get it work with other pages, should your URL be 

        <a href="/t5/community/page.logoutpage?t:cp=authentication/contributions/unticketedauthenticationactions&amp;dest_url=http%3A%2F%2Fpfxaw45692.stage.lithium.com%2F">Sign Out</a>

         

        please note the first "/" in the URL