I am using worpress and have added a loggout link in the nav:
echo '<a href="http://mydomain.com/wp-login.php?action=logout&redirect_to=%252Flogin%252F&_wpnonce=a2b834fa87">Logout</a>';
I need it to redirect to the homepage instead of going to the login page.
If possible I would like to do this by modifying the link about.
I tried changing %252Flogin%252F to the url but that didn’t work.
It should work. But don’t forget urlencode your homepage url.