Title: Logout Redirection issue
Last modified: February 26, 2018

---

# Logout Redirection issue

 *  [thkg00fy](https://wordpress.org/support/users/thkg00fy/)
 * (@thkg00fy)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/logout-redirection-issue/)
 * Hey there,
 * this might be a very outdated plugin, but it still works just fine in the current
   WordPress version.
    However, I found a minor issue in the original code.
 * Although the plugin seems to check if SSL is used or not (after/during a login),
   it still redirects to a http-based URL, which leads to unnecessary errors. This
   behaviour seems to be hard coded:
 *     ```
       		if($show_loginout){
                           if($use_redir){
                               $redir='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
                           }
                           echo $each_entry['before'];
                           wp_loginout($redir);
                           echo $each_entry['after'];
                       }
       ```
   
 * I know I could try to “hack fix” this, but if there ever would be an update, 
   it would be destroyed.
 * Greetings
    thkg00fy 🙂

 The topic ‘Logout Redirection issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-meta-widget_fcfcfc.svg)
 * [Advanced meta widget](https://wordpress.org/plugins/advanced-meta-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-meta-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-meta-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-meta-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-meta-widget/reviews/)

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