Redirect after login not working as desired
-
I’m using default users in wordpress for the bbpress forums as for the regular pages for wordpress.
I’ve installed WordPress Access Control to disallow visitors and regular members from viewing certain pages. These are only allowed to be shown to the paying members of the organisation.
I’ve configured the Access Control to redirect to the page with the bbpress login form when a user isn’t logged in and tries to view a page to encourage paid subscriptions.The redirect to the login form looks good since it has a value refering to the original page and the link is in this format:
login/?redirect_to=/some-folder/the-page-the-user-tries-to-view
However when a user logs in correctly, the login page is still showing with the message that they’re already logged in. The link has changed to this:
login/?redirect_to=%2Fsome-folder%2Fthe-page-the-user-tries-to-viewSo how can I catch that parameter and do the proper redirect to the page where the users initially was?
- You must be logged in to reply to this topic.