I have setup a custom logout URL for my Community via Communities > Worksspace > Administration > Login & Registration > Logout.

When I press the logout URL (which is /secur/logout.jsp) it directs to the Salesforce.com homepage instead.

Can anyone advise if its the wrong URL I am using? I can see that the session also is not destroyed when that logout.jsp is clicked.


You can use this /secur/logout.jsp?retUrl=https://google.com/. Here google.com is just an example. You can redirect to the URL you want. Ideally I would expect to do the way you've done but the above will also work.

Regards, Ansuman

| improve this answer | |

So the problem is the full community URL needs to be specified before /secur/logout.jsp.

Adding ?retUrl=https://google.com/ will define where the site should redirect to after session has been closed.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.