Forum Discussion
- nathanExecutive
There are FreeMarker functions to get the login/logout URLs:
It's better to use these where possible rather than hard-coded URLs as they will continue to work if you change your configuration.
- YuriKKhoros ExpertHey dhiraj,
What error are you seeing? Do you mind posting the code for the drop down here?
Thank you,
YuriHi Yurik,
I'm using following lines of code.<a href="t5/community/page.logoutpage?t:cp=authentication/contributions/unticketedauthenticationactions&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."
- HaidongGLithium 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&dest_url=http%3A%2F%2Fpfxaw45692.stage.lithium.com%2F">Sign Out</a>
please note the first "/" in the URL
Related Content
- 11 years ago