Logout redirects to default page

enter image description here

New to wordpress and not a php developer, but I’m currently having an issue with a user being redirected to a default wordpress page and being asked to confirm if the user wants to log out twice. I have added screen shots of what is going on. I tried modifying the function in functions.php that handles the logout and another function wp-login.php (picture below) but have had no luck. Has anyone else ran into this issue before or any idea how to fix it?


Below are 2 images pertaining to the behavior of my website in its current state. After I click ‘logout’ in my nav bar, I get taken to the page in the 3rd image below and after i click the logout button, I get taken to a duplicate page and it looks like it tags stuff on the end of the urls query parameters.

enter image description here

enter image description here

Read more here:: Logout redirects to default page

Leave a Reply

Your email address will not be published. Required fields are marked *