Take the 2-minute tour ×
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It's 100% free, no registration required.

I have put a logout link on my site. When I click it, I am logged out and redirected to the homepage. How do I specify a different page to redirect to?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

I always recommend my add-on Authenticate.

https://objectivehtml.com/authenticate/documentation/tag/logout-url

{exp:authenticate:logout_url return="/some/return/url"}
share|improve this answer
    
I've encountered some problems using Authenticate: expressionengine.stackexchange.com/questions/2194/… –  ExpressionEngineNewbie Jan 1 '13 at 1:43

I use a add-on for member management on the front-end called FreeMember. This add-on offers a more fine grained control for member management using regular templates. (including return url after logout).

https://github.com/expressodev/freemember

share|improve this answer

Another option, besides FreeMember is LogIn Redirect. Generally speaking, the standard login/logout doesn't offer you much leeway in modifying redirects, but either of these plugins (and others) aim to improve that experience.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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