× Joomla Facebook Connect support forum

Topic-icon logout redirection issue

Active Subscriptions:

None
13 years 4 months ago #6737 by whitehorse
Hi, I redirect users to "home" upon clicking JFBConnect module's 'Logout' button, but when they get there all the modules that should be present are not there.

Correct:
File Attachment:


Incorrect:
File Attachment:


The problem appears to be with url encoding...

The missing-modules home-page has this URL:
salonchat.net/index.php?option=com_commu...frontpage&Itemid=202

But when I manually remove all the amp; 's to get:
salonchat.net/index.php?option=com_commu...frontpage&Itemid=202
the page looks fine.

I could probably hack this but if you'd like to fix it that would be great. (unless it's something my site is doing wrong??)

thanks!
Michael
The topic has been locked.
Support Specialist
13 years 4 months ago #6775 by alzander
Replied by alzander on topic logout redirection issue
If you're up for trying a minor, minor code change, we'd like to hear your results. In the /components/com_jfbconnect/libraries/facebook.php file, at line 82, change the end of the sentence from 'false' to 'true:
$logoutLink = JRoute::_('index.php?option=com_jfbconnect&task=logout&return=' . $logoutUrl, true);

Let us know how that goes!
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6780 by whitehorse
Replied by whitehorse on topic logout redirection issue
I made the change but noticed no difference in behavior - the 'Logout' click still directs to
salonchat.net/index.php?option=com_commu...frontpage&Itemid=202

And because the amp; 's are in the url, the resulting redirect to 'home' is minus the modules the page is supposed to have (when I manually strip them from the url the page renders correctly with its modules).

What's even stranger perhaps, now, is that I turned off JFBC's redirect settings in the component and module but the logout click is still sending users to the (missing modules) home page... though the 'login' works as expected (no redirects).

thank you
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6782 by whitehorse
Replied by whitehorse on topic logout redirection issue
For now I just changed that line to
$logoutLink = JRoute::_('index.php?option=com_jfbconnect&task=logout');

.... now when user clicks 'Logout' they're redirected to homepage with modules correctly appear.

thank you
The topic has been locked.
Support Specialist
13 years 4 months ago #6804 by alzander
Replied by alzander on topic logout redirection issue
Alright, we'll investigate further. We originally put the & in for better HTML validation on request.. but agree, it's caused more issues than it's worth.

Thanks, and glad you found a fix that works for you.
The topic has been locked.