Right now when I log out via:

```
<a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Log out</a>

```

it redirects me to the page where I need to confirm the log out.

How to eliminate the confirmation and redirect to the homepage after logout?