Not without modding core files no, or at least not with ease.
wp-login.php
Starting line 274…
case 'logout' :
check_admin_referer('log-out');
wp_logout();
$redirect_to = 'wp-login.php?loggedout=true';
if ( isset( $_REQUEST['redirect_to'] ) )
$redirect_to = $_REQUEST['redirect_to'];
wp_safe_redirect($redirect_to);
exit();
break;
You could modify the redirect, but you’ll have to do this with each update of WordPress.
that will have to do. its not too hard. it would be ideal to make a parameter in the loginout function to send it to this…
Before this code worked:
<a href="<?php bloginfo('url') ?>/wp-login.php?action=logout&redirect_to=<?php echo urlencode($_SERVER['REQUEST_URI']) ?>">Logg ut</a>
I tried this now, but it does not work anymore, why?