The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. pandaj
    Posted 4 years 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,

  2. pandaj
    Posted 4 years ago #

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


Topic Closed

This topic has been closed to new replies.

About this Topic