Open mscurtescu opened 1 year ago
Might not be possible. WordPress is not capturing the current page on the logout menu action.
Somewhat related plugins:
The "Log out" link in the comments section implements the correct redirect back to the same post:
Example log out link:
http://localhost:8080/wp-login.php?action=logout&redirect_to=http%3A%2F%2Flocalhost%3A8080%2F%3Fp%3D1&_wpnonce=8cbafe133e
the link has the expected redirect_to
query parameter.
Currently clicking "Logout" in any page will take you to the login page. If you click "Logout" while on a publicly accessible page it would be expected to be returned to the exact same page.
This behavior is most likely a WordPress general configuration, not a Hellō plugin specific issue. With that in mind: