Support Forum

Log Out Redirect

MW Michael Walden
Michael Walden
Member

We use UltimateMember for our for our site membership needs. The Log Out option for UltimateMember directs users to https://mydomain.org/logout/?redirect_to=https://mydomain.org which logs the user out and returns them to the main page of the site.

If I put that URL into the Forum>>Components>>Login and Registration>>Log Out Redirect box, when I log out it takes me to the wp-login.php page. This leaves the WP login and registration page available to users, which we do not want to happen.

I also tried putting the URL in the Forum>>Components>>Login and Registration>>Alternate Logout URL box with the same results.

In fact, with either of those options defined (Log Out Redirect or Alternate Logout URL) even using the url itself to log out results in landing on the wp-login.php page. 

If I leave the option blank, it logs me out but leaves me on the page I was on rather than taking me to the main page of the site.

 

I hope I am describing the issue clearly enough. embarassed

4 Answers

New Answer

MP Mr Papa
Mr Papa
Member

confused…  in the forum – components – login and registration (right side redirects for logout), why dont you just put http://mydomain.org ???  so when you log out, you will go to the site main page… which seems what you want…

MW Michael Walden
Michael Walden
Member

It doesn’t matter what URL I put in there, I end up at the wp-login.php page.

MP Mr Papa
Mr Papa
Member

then sounds like you have a wp theme or another plugin that is overriding both us and ultimate member…

can you try it with default wp theme?  and then with other plugins disabled?

YS Yellow Swordfish
Yellow Swordfish
Member

I have to agree with @mr-papa – and I am unable to replicate the problem using our development systems here.

I would add though that if you have a login/logout provided by Ultimate Member on the website then you may want to consider simply removing the SP one (which you can do in the admin options panel) as they both will perform the same job. Actually – the membership plugin may do more than that of course making it even more worthwhile considering doing so.