Forum Discussion

gstelang's avatar
gstelang
Mentor
9 years ago

How to implement sign out link in component?

Hi guys,

 

I am trying to implement a custom component with sign out link and just giving the link such as 

/community/page.logoutpage?t:cp=authentication/contributions/unticketedauthenticationactions&dest_url=<url encoded base URL> does not work.

 

Upon investigation, I found the sign out link that was built for us had data-lia-action-token attribute set on the anchor tag. Looks like unless I have this, my sign out wouldn't work.

 

My question is - Is there a helper method that will give me a sign out link? or How can I construct such a URL?

 

Thanks for the help.