I'm using some code that I found here in order to create a login/logout form on my sidebar. The login works just fine, but what's weird is that on logout, the user gets redirected to "personaldomain.com/%2F", and I get an error that says
Not Found
The requested URL // was not found on this server.
The code for the logout button is:
<a href="<?php echo wp_logout_url(urlencode($_SERVER['REQUEST_URI'])); ?>">logout</a><br />
Any advice?
urlencode()which is used anyway inwp_logout_url()s internal code? – toscho♦ Jun 12 '12 at 12:30