I’m using the latest version of WP. I have a problem, where clicking the logout button from the admin panel redirects to a completely broken link:
http://wp-login.php/?loggedout=true
As you can see, the domain is completely omitted from the link(in my case it’s wp.localhost)
I will mention that this local WP site was “cloned” from a remote server, but i made sure to change the “siteurl” and “home” fields in the wp_options table, and everything else works just fine
Can somebody tell me, where the problem might be? Is there any other configuration field, that might be relevant to this?
1 Answer
Found the answer. It is a bug in WordPress v5.2.3 affecting WordPress in Windows environments. Caused by backslashes in Windows paths that aren’t stripped correctly
Details here: https://core.trac.wordpress.org/ticket/47980
I have tried the patch suggested and can confirm it solves the problem.
replace:
$location = "https://wordpress.stackexchange.com/" . ltrim( $path . "https://wordpress.stackexchange.com/", "https://wordpress.stackexchange.com/" ) . $location;
with
$location = "https://wordpress.stackexchange.com/" . ltrim( $path . "https://wordpress.stackexchange.com/", '/\\' ) . $location;
in /wp-includes/pluggable.php, line 1404
It says it will be fixed in version 5.2.4