How to redirect to login and return
If a user is not logged in and tries to access a buddypress path, they’re redirected to the site base url – either by actual redirection or by truncating the path (I don’t know which). This is not an expected behavior on the web. If a user is not logged in, they should be redirected to /wp-login.php?redirect_to=[urlencoded-source-url]. I can’t believe buddypress doesn’t work this way. Am I missing something? If buddypress can’t do this as-is, how do find where it prevents logged-out users from accessing buddypress paths?
You must be logged in to reply to this topic.