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
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 />