• Resolved yurigoul

    (@yurigoul)


    Hi,

    The plugin basically does what it needs to do and helps people logout in situations where normal logout is not working – which is great!

    But after logout it redirects to example.com/WP_HOME instead of to the home of my site.

    When I define WP_HOME in my wp_config.php it does work:

    define( 'WP_HOME', 'https://example.com' )

    But if I edit the plugin and find the line containing:

    header('Location: '.WP_HOME);

    and change it to the following it also works and is maybe easier:

    header('Location: '.get_option('home'));

    Thanks for all the work!

    • This topic was modified 7 years, 3 months ago by yurigoul.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks yurigoul your tip regarding changing the php file (line 35) did the trick with getting the site visitor back to the home page instead of WP_HOME.

    Plugin Author joelhardi

    (@joelhardi)

    Thanks for the idea and interest in the plugin.

    I’ll push a version 0.2 that uses get_option('siteurl') instead of WP_HOME.

    ‘siteurl’ is the value the user puts in the General Settings screen as “Site Address (URL)” or sets using the WP_SITEURL constant. See here.

    I think it makes a little more sense than WP_HOME that I was using since some people opt to put their WordPress files in a non-standard location.

    If you have any other thoughts/ideas just let me know.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Logout does not go home but to example.com/WP_HOME’ is closed to new replies.