By Le Giang Anh on Tuesday, 07 October 2014
Posted in Technical Issues
Replies 9
Likes 0
Views 764
Votes 0
Hi,

I'm using EasySocial in some sites which has the same Joomla installation.
Every time I log out, it auto redirects me to a menu, for example "redirect-menu" alias. So the URL will be like this:
- domain.com/redirect-menu if I log out in main domain
- sub.domain.com/redirect-menu if I log out in subdomain
What I need: every time I log out, it redirects me to domain.com/redirect-menu even I'm in the subdomain.
Is this possible?

Thanks,
Giang Anh
HI Giang Anh,

Unfortunately I'm using dropdown module. Is it possible to apply for this module?


Try this. Open the file 'JOOMLA/modules/mod_easysocial_dropdown_menu/mod_easysocial_dropdown_menu.php' and look for below code at line 67:


$logoutMenu = FD::config()->get( 'general.site.logout' );
$logoutReturn = FD::get( 'toolbar' )->getRedirectionUrl( $logoutMenu );
$logoutReturn = base64_encode( $logoutReturn );


and replace the above with:


$logoutReturn = ModEasySocialDropdownMenuHelper::getReturnURL($params);


Please see http://screencast.com/t/jUjY2eIob

Hope this help and have a nice day
Sam
·
Tuesday, 14 October 2014 15:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Giang,

As replied in the ticket, this is unfortunately not possible right now
·
Tuesday, 07 October 2014 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

So how about same page login redirect? Is it possible?

Thanks,
Giang Anh
·
Monday, 13 October 2014 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Giang Anh,

So how about same page login redirect? Is it possible?


Are you using EasySocial Login module? If yes, then this is already possible. If you login from a certain page, after the login, you will be redirect back to that page

Hope this help and have a nice day
Sam
·
Monday, 13 October 2014 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I'm sorry for my mistake. I meant same page logout

Thanks,
Giang Anh
·
Monday, 13 October 2014 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Giang Anh,

I am sorry but currently there is no option to configure EasySocial to logout on the same page

However, if you are using EasySocial login module, then maybe you can try the below customized php file so that when someone logout via this module, it will 'try' to redirect the user back to the same page

Download the two php files both files to 'JOOMLA/modules/mod_easysocial_login/tmpl/' and overwrite both existing file 'default_vertical.php' and 'default_horizontal.php'

Let me know if the above work for your or not.

Hope this help and have a nice day
Sam
·
Monday, 13 October 2014 18:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Unfortunately I'm using dropdown module. Is it possible to apply for this module?

Thanks,
Giang Anh
·
Monday, 13 October 2014 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Work correctly so far. Thank you so much ^_^
·
Tuesday, 14 October 2014 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
Sam
·
Tuesday, 14 October 2014 17:44
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post