3

I'm leveraging communities but using my own UI with VF pages. For customer portals you were able to set the logout URL, I don't see this option in communities. Does such a thing exist?

UPDATE To clarify I have a custom login page, I'd like it to redirect back to that login page instead of the standard community login page after logout. In the customer portal settings you're able to specify the URL for the logout page to redirect to. I want to know if this is an option with the community.

4
  • can you explain in bit more detail?
    – Ashwani
    Sep 20, 2013 at 6:54
  • I added more detail
    – Phil B
    Sep 20, 2013 at 13:31
  • If I am understanding correct you want your own vf login page and when user logout, it would redirect to your own custom visualforce page instead of default community landing page? @PhilB
    – Ashwani
    Sep 20, 2013 at 17:30
  • Yes. back to my own vf login page.
    – Phil B
    Sep 20, 2013 at 18:01

2 Answers 2

1

Today, you can't currently change the logout URL of a community: /secur/logout.jsp

However, if you're rolling your own UI (even in the standard communities UI, you have control over the footer), then you can create your own logout link and page, and manually call /secur/logout.jsp in your page.

3
  • Yeah I saw an example where someone used a javascript timeout redirect and called /secure/logout.jsp inside an invisible iframe. Is that pretty much what you're describing?
    – Phil B
    Sep 20, 2013 at 16:45
  • That's exactly what I am describing. Given that logout is not a configurable page at this time, that is your only option.
    – greenstork
    Sep 20, 2013 at 17:04
  • Yeah it feels kinda hacky but unfortunately I think this is the best option. I used something similiar to this: cloudjedi.wordpress.com/2011/08/17/…
    – Phil B
    Sep 20, 2013 at 21:26
2

As of the Winter '15 release, you can set a custom logout page URL under
Administration Settings > Login & Registration.

Check out the documentation here:
http://docs.releasenotes.salesforce.com/en-us/winter15/release-notes/rn_networks_custom_pages.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .