By Philippe on Tuesday, 22 May 2018
Posted in Technical Issues
Replies 5
Likes 0
Views 1K
Votes 0
Hello,

I would like to automatically redirect a user after logging in to their profile page.

But I do not want to choose a menu item in the EasySocial Login Redirection settings, corresponding to (User) Profile Layout .
Because in this case, all users have in their url the alias of this menu.

To avoid this, can you tell me which file I can modify in order to redirect manually after login to the page of the logged in user (Profile Layout) ?

See captures in attachments.
Thank you for your help.

Philippe
Hi there,

The file that get the login redirection is:
.../administrator/components/com_easysocial/includes/modules/modules.php
function getLoginReturnUrl
·
Tuesday, 22 May 2018 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Fadhli.

I tried to understand and follow the help here : https://docs.joomla.org/How_do_you_redirect_users_after_a_successful_login%3F
And replace :

$url = 'index.php?option=com_easysocial&view=profile';
But it does not work.

Can you tell me more please ?

Thank you,
Philippe
·
Tuesday, 22 May 2018 17:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Which login form are you trying to alter? The file which Fadhli provided is for modules. If you are logging in from a module, it should work.

By the way, please do understand that as this is beyond the scope of our support, in the future, it should really be posted in the Non Supported area.
·
Tuesday, 22 May 2018 22:38
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post