Title: logout redirection
Last modified: August 21, 2016

---

# logout redirection

 *  [davide.suppo](https://wordpress.org/support/users/davidesuppo/)
 * (@davidesuppo)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/logout-redirection-1/)
 * using wp_logout_url( get_permalink() ); as a link for the logout create some 
   little problem with some template on the home page:
    get_permalink() however,
   get’s the permalink of the current post in the loop (if you’re using it outside
   the loop, you’ll find that it takes the user to the last post in the loop after
   they log out).
 * I think it would be better to get the url of whatever page you’re currently on,
   using $_SERVER[‘REQUEST_URI’];
 * [http://wordpress.org/plugins/login-logout-switcher/](http://wordpress.org/plugins/login-logout-switcher/)

The topic ‘logout redirection’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/login-logout-switcher.svg)
 * [Login Logout Switcher](https://wordpress.org/plugins/login-logout-switcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/login-logout-switcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/login-logout-switcher/)
 * [Active Topics](https://wordpress.org/support/plugin/login-logout-switcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/login-logout-switcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/login-logout-switcher/reviews/)

## Tags

 * [Logout](https://wordpress.org/support/topic-tag/logout/)
 * [logout link](https://wordpress.org/support/topic-tag/logout-link/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * 0 replies
 * 1 participant
 * Last reply from: [davide.suppo](https://wordpress.org/support/users/davidesuppo/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/logout-redirection-1/)
 * Status: not resolved