WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Logout doesn't redirect (2 posts)

  1. pandaj
    Member
    Posted 1 year ago #

    When first clicking the log out link the URL will be like 'domain/wp-login.php?action=logout&redirect_to=%24index.php&_wpnonce=265159f618' which is on the page where it says 'You are attempting to log out of X. Do you really want to log out?'. Once confirmed I am taken to 'domain.com/wp-login.php?loggedout=true', no matter what I do.

    I really can't see where I am going wrong! My log out link is:
    <a href="<?php echo wp_logout_url('$index.php'); ?>" title="Logout">Logout</a>

    Any help would really be appreciated,
    Thanks!

  2. pandaj
    Member
    Posted 1 year ago #

    Well I'm not sure if this is the best way to fix it, but the plugin does the trick:

    http://wpmu.org/login-and-logout-redirect-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Topic