By Richard on Sunday, 27 March 2016
Posted in General Issues
Replies 8
Likes 0
Views 644
Votes 0
The default login page goes to the member dashboard area, but I have a number of pages visible to the public that prompt for login if they try to access them and when a successful login is made, I would like the member to go to the page they were viewing, not the dashboard.

How do I achieve this?

The other option would be to direct them to the home page instead.
It actually depends on which page they are viewing. Which pages are they trying to login from?
·
Sunday, 27 March 2016 20:36
·
0 Likes
·
0 Votes
·
0 Comments
·
All pages requiring a visitor to be registered/logged in automatically go to the EasySocial Login Menu (see image).

There is also a Login-Register Menu in the Topbar that uses the EasySocial Login Menu option but is not part of the redirect process if a visitor tries to login to a restricted area.

The following menu options are visible to the public but access is restricted to members:

New Listing/Project/Blog/Discussion
Community Members/Profile
My Questions
Chat/Chat Area
·
Sunday, 27 March 2016 22:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Ignore the Chat/Chat Area options, if trying to view those menus they already go directly to the Chat Page after logging in.
·
Sunday, 27 March 2016 22:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Richard,

I am sorry for the late reply for this. In order to redirect after the login you can setting on the back end by:
1. Click Components->EasySocial->Settings->Users->Authentication->Login redirection->Stay on the same page
(Please refer this screenshot: http://screencast.com/t/gSxSnxyDb)
·
Monday, 28 March 2016 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Muhammad,

Thank you for your help, the setting works perfectly for all the menu items. The only issue I have is with the main Login and Login/Register Menus that use the EasySocial-Login-Layout (as in the image in my last post).

I assume their default 'same page' is the dashboard, how do I change that to go to whatever page the member was on before logging in without affecting the 'same page' results for the other menus?

For example if they are looking at a blog or a forum post, or a directory listing and decide to login using the main login or login/register menu, how do I make them go back to the page they were viewing?

At the moment they go to the dashboard if logging in from any part of the site that is not one of the other menus mentioned in my last post.
·
Monday, 28 March 2016 20:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Because the "Login / Register" link at the top is a hyperlink, there is no way to remember the current state unless you custom code that link into your template.
·
Tuesday, 29 March 2016 00:23
·
0 Likes
·
0 Votes
·
0 Comments
·
I understand Mark and can work round it by changing the 'Same Page' setting in Components->EasySocial->Settings->Users->Authentication->Login redirection to 'Home Page' for the Login and Login/Register menus that use the EasySocial login option.

The other menu options stay on the same page using hidden menu redirects and when viewing a Blog the EasyBlog toolbar login also keeps the visitor/member on the same page (I assume ED4 will have the same option).

I will look at a same page option for other random pages but the above will cover the majority of visitor/member requirements.
·
Tuesday, 29 March 2016 01:48
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Richard Perhaps you should place a login module around that area
·
Tuesday, 29 March 2016 01:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post