For users who use multi-site and found the url redirects on logout don’t work, here’s the solution I found today. It involved a little digging into the mu-plugins directory and a small addition to the code, but it’s not too hard.
It involves editing domain_mapping.php and adding the two lines immediately after the comment (and before the echo statement):
function redirect_login_to_orig() { if ( !get_site_option( 'dm_remote_login' ) || $_GET[ 'action' ] == 'logout' || isset( $_GET[ 'loggedout' ] ) ) { return false; } $url = get_original_url( 'siteurl' ); if ( $url != site_url() ) { $url .= "/wp-login.php"; // INSERT AFTER THIS COMMENT - finzend: make sure the redirect keeps working on logout? if ( ($_GET[ 'action' ] == 'logout') && (!empty($_GET["redirect_to"])) ) $url = $_GET["redirect_to"]; echo "<script type='text/javascript'>\nwindow.location = '$url'</script>"; } }
This is not my solution, I originally scored this little tidbit from the wordpress support forums. The original appears here. Posted here for reference.