5

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?

5

I always recommend my add-on Authenticate.

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

{exp:authenticate:logout_url return="/some/return/url"}
| improve this answer | |
3

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

| improve this answer | |
2

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.

| improve this answer | |
0

The User add-on by EE Harbor has a nice little Logout form, which allows you to create a return path.

| 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.