By Jordan Weinstein on Saturday, 16 February 2019
Posted in General Issues
Replies 8
Likes 0
Views 1.1K
Votes 0
I have EasySocial system plugin set to redirect com_users so that the usual login page redirects to the EasySocial login page.

If I create an menu item for com_users login view, then when accessing that itemid, the user is redirected to EasySocial - this is correct

However, if I set a login redirection in that menu com_user item to some page within my site, after logging in, the return URL is simply the EasySocial dashboard. I think it is important to pass that redirect option to the EasySocial login form as as the correct return URL. You can test this on your own machine as this seems to be the default behaviour for EasySocial. Is there any way to pass that parameter for login redirection to the EasySocial login page? Otherwise, this breaks an aspect of the login menu item.

An alternative would be to add a parameter to the EasySocial login menu (index.php?option=com_easysocial&view=login) item where you can specify a login redirection. Right now, there is no such option.

Thanks,

Jordan
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

Can I know which 'com_users' menu type you create?

Because if the system detected this following pages someone trying to access, it will redirect to the Easysocial page.

For example :
- com_users profile,
- com_users login/logout
- com_users password reset,
- com_users username reminder
- com_users registration
·
Saturday, 16 February 2019 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I am referring to the menu item:

- com_users login

Ih the settings for this menu item, you can specify the redirection after login url, seen here:

http://d.brightbean.ca/eJiOgU

If the ES plugin over-rides the login to force it to the ES login page, it should use the the login redirection selected in those settings after the login is completed in ES. As it is now, the login occurs via the ES login page and the redirection URL is ignored.

Jordan
·
Saturday, 16 February 2019 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually you can set this login redirection from backend > Easysocial > setting > Users > authentication > Login Redirection

Or you can set different login redirection for different profile type user from backend > Easysocial > User > profile type > edit profile type > general > login redirection

may i know is there any specific reason you would like to respect this Joomla user login menu setting?
·
Saturday, 16 February 2019 12:46
·
0 Likes
·
0 Votes
·
0 Comments
·
I have a specific menu item which is for registered users only. When users try to access the item they are asked to login and will be redirected back once they do. This is the whole reason that Joomla allows you to specify redirection URL per menu item
·
Saturday, 16 February 2019 12:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry Jordan, I still not really understand.

Perhaps you can check my following details and see whether i understand correctly with your current issue or not.

1. Created a new menu item (anything) and set the access to 'Registered'.

2. Created a new menu item for Joomla login menu item and set login redirection to above menu just created.

3. When the user manually access this 'Registered' menu item page, it did redirect to Easysocial login page but it didn't redirect back this "Registered" menu item page, am i right?

If I understand wrongly, it would be best if you can provide us with your site backend login details and explain to me which page URL you trying to login.
·
Saturday, 16 February 2019 14:53
·
0 Likes
·
0 Votes
·
0 Comments
·
When using com_uses login menu item, I could have users redirect to a specific location depending on which menu item I use.

So for example, I could make:

com_users (login) alias: "Login1" --> redirect to page 1 on login
com_users (login) alias: "Login2" --> redirect to page 2 on login

By ES overriding the login process, that is fine, but it would be very useful if picked up the login redirection parameter of the menu item it is overriding.
·
Saturday, 16 February 2019 22:09
·
0 Likes
·
0 Votes
·
0 Comments
·
That is not possible to retrieve those menu params during redirection, but we will see if we can able to add an option to allow admin to set different login/logout from the Easysocial login menu item in the future.
·
Sunday, 17 February 2019 11:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post