Redirecting to the original page from which the person clicked on "login" | Peter's Login Redirect | Forum
Back to the login redirect plugin page
11:01 pm
Is there a way to get the plugin to make the redirect go back to the page where the person logged in from? Basically, I would like to put a login link next to each comment section for each post. Then, if a person wants to comment and they are already a member, they can click on login, and then be returned to the page where they originally were.
WP is really not user friendly and not geared towards having a lot of guest subscribers. But in my case, I have a rather large number of registered guests in my PhPBB forum, and the forum has single sign on integration. So the user can actually login with their phpbb credentials.
It would be a real hassle if a user was viewing a specific post, then went to the login page, and have the login page redirect them to say the home page or a fixed page. They would then have to find the original post they wanted to comment on again. So it would be nice to have a redirect back to the original page from which the login request originated from.
Any pointer would be greatly appreciated. PhP code is fine too.