Hey Mark. I’m using it to redirect the user back to the page they were one before they clicked “logout.” By default, from what I can tell, EE will redirect the user to the homepage once they have logged out and I don’t like that functionality.
So, here’s what I’ve got:
{if segment_1 != ""}
{exp:logout_redirect url="http://www.domain.com/{segment_1}" text="Logout" styles="class="logout-link-class"}
{if:elseif segment_2 != ""}
{exp:logout_redirect url="http://www.domain.com/{segment_1}/{segment_2}/{segment_3}" text="Logout" styles="class="logout-link-class"}
{if:elseif segment_3 != ""}
{exp:logout_redirect url="http://www.domain.com/{segment_1}/{segment_2}/{segment_3}" text="Logout" styles="class="logout-link-class"}
{/if}
