Redirect to current page/blog after login
This topic contains 13 replies, has 3 voices, and was last updated by Stiofan O’Connor 7 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: redirect login
-
AuthorPosts
-
November 7, 2017 at 9:09 am #943
Dear support,
I’m using UsersWP (Core Plugin) version 1.0.11 – no other plugin is enabled – on wordpress 4.8.3.
I want to substitute the backend login page and want users to login first before they are allowed to comment a blog post. I expect that after login the user returns to the blog post he was reading before he was forced to login. This is the original wordpress login-for-commenting-behaviour – visible after disabling the UsersWP plugin.
If I configure UsersWP on tab UsersWP Settings > Login:
1. Login Redirect Page : <Select a Page> -> wordpress default will be used
2. Redirect wp-login.php: <false> -> wp-login.php will be usesIf user clicks on reply to in the blog post he is directed to the backend login page and after login he returns to the current blog post.
If I enable the wp-login.php redirect the user is re-directed to the UsersWP login page but after login he does not return to the current post. Instead he will be directed to the start/home page (as described by the setting option).
From a users point of view this is inconvenient.
Please advice.
Thanks in advance.November 7, 2017 at 11:05 am #949Hello,
What theme are you using? If you can provide wp-admin details in a private reply (only staff can see) i will check things over.
Thanks,
Stiofan
November 7, 2017 at 12:52 pm #951This reply has been marked as private.November 7, 2017 at 12:54 pm #952This reply has been marked as private.November 7, 2017 at 1:12 pm #955What other plugins do u have active?
Stiofan
November 7, 2017 at 11:04 pm #964Hello!
We have not yet been able to verify this issue, but we believe we have enough information to recreate it.
As soon as we verify it we will post back here with the next steps for a resolution.
For the moment, if you have more information that you would like to share, or could supply admin login to the site for verification, we would appreciate it.
Thank you for your report!
November 8, 2017 at 11:08 am #967This reply has been marked as private.November 8, 2017 at 1:24 pm #968Hi hase,
Please try the latest dev version from here: https://github.com/UsersWP/userswp
Thanks,
Stiofan
November 9, 2017 at 10:17 am #978This reply has been marked as private.November 9, 2017 at 10:30 am #979Hi Hase,
Can you explain more what you mean, redirected when u do what?
Stiofan
November 9, 2017 at 11:38 am #981This reply has been marked as private.November 9, 2017 at 4:30 pm #983Thanks for the explanation, i have made a change to resolve that.
Thanks,
Stiofan
November 12, 2017 at 8:09 am #985Hi Stiofan,
many thanks for your quick solution, it solves the issue. Good work.
May I ask you if the following behaviour would be possible? If true this would improve user experience.
The comment form of a post is at the bottom of the html page. So the user scrolls down to leave a comment. There he is told he must be logged in to leave a comment, he gets (re-)directed to the login form and after login he returns to the same post – but he is located on the top of the page and needs to scroll done to the comment form again. This is not very handy. Is it possible that the user returns to the same location on the post where he triggered the login?
As far as I understand the html Code generated by the theme twentyseventeen there is no unique source element which can be used as target to return to after login. If this assumption is right, than this feature would require different html code generated by a different theme (or I need to extend the theme to append the unique element). Do you know a theme which supports this feature already out off the box? Okay, lets assume a supporting theme is required and exists, would UsersWP in this scenario be able to return to the comment form down on the page?
Cheers
HaraldNovember 13, 2017 at 1:01 pm #986Hi Harald,
That is the defautl behaviour of the comment form function, a theme would need to make it specific to change that, its really something that has to be done in theme.
Stiofan
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket