× Joomla Facebook Connect support forum

Topic-icon Redirection to Jomsocial not working

Active Subscriptions:

None
12 years 4 months ago #17094 by fb_650063770
Hello! I know this is just a simple issue but I can't seem to redirect the JFBC Joomla login to my Jomsocial component. The FB login redirection works but when I login via Joomla it goes to a non-menu page item (I think). Also when I tried to change the redirection to a normal page, the Joomla login redirection works fine. Redirection fails on the Jomsocial menu items (profile, community home page, etc).
The topic has been locked.
Support Specialist
12 years 4 months ago #17116 by alzander
Not sure offhand, that should definitely work, and is something we've seen done on many sites. Can you help answer the following:

Do you have any 3rd party SEF extensions installed?

What is the Menu type your trying to redirect to, and what is the actual URL that's being redirected to instead?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17167 by fb_650063770
Yes I am using sh404SEF. I am redirected to a certain page with a non-sef url. The menu that I am trying to go to is a Jomsocial component.
The topic has been locked.
Support Specialist
12 years 4 months ago #17174 by alzander
Do you have a menu item created for the URL you're going to? What kind of menu item is it? It's best if you're using a component's built in menu item, like "JomSocial Home Page" or whatever, instead of an "External Link" URL with a hand-coded "index.php?option=xxxx" type item.

My guess is that sh404SEF isn't causing the problem, but to test, I'd recommend disabling it (temporarily) to see if the redirection works properly. Knowing what happens will help us better figure out how to fix your problem.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17198 by fb_650063770
Yes I have a menu item to which the URL leads to.

When I disabled the sh404SEF, the redirection worked. So I guess it's the SEF component that is causing the conflict.
The topic has been locked.
Support Specialist
12 years 4 months ago #17208 by alzander
Ian,
We've done a bit of testing and updates for the 4.1 release (due out this week) with SEF extensions. That should fix the type of problem your seeing, but I'm honestly not sure why you're seeing it with 4.0 at all. Either way, the recommendation for now is simply to wait for 4.1 and test with that. If you run into other issues when that's available, we should be able to help you fix them quickly.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17746 by fb_650063770
I have already installed the 4.1 but still the error persists. I think it's my SEF component. Any suggestions? The url displayed is not the SEF url of the redirection page but it looks like this: www.upcatreview.com/index.php?Itemid=324
The topic has been locked.
Support Specialist
12 years 4 months ago #17757 by alzander
Ian,
JFBConnect should be looking up the link to use from your Menu table. Can you check that for the menu item you're trying to redirect to has a link specified for it? JFBConnect uses that link/url in the menu item to build up the full redirection URL.

Also, when you disable sh404SEF, what is the URL you're redirected too?

Finally, can you look at your sh404SEF URLs to see if any of them match the URL you're seeing? It's possible that somehow sh404SEF thinks that's actually the SEF URL, which is obviously not right.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 4 months ago #17762 by fb_650063770
Here are the non-SEF urls... upcatreview.com/index.php?option=com_com...ng=en&view=frontpage
upcatreview.com/index.php?option=com_com...ng=en&view=frontpage
upcatreview.com/index.php?option=com_com...ng=en&view=frontpage

This is the link when I turn off SEF: www.upcatreview.com/index.php?option=com...frontpage&Itemid=324
This link redirects to the same page with SEF url upcatreview.com/community

I also check mysql table for the menu item and it exists. Item id 324 has the link index.php?option=com_community&view=frontpage in it.

Using FB login, I don't have problems... it redirect properly. However normal login doesn't. I have done all that I can to solve this and I think this is way beyond my powers already. If all else fail, I'd like to ask help to hack the core files.
The topic has been locked.
Support Specialist
12 years 4 months ago #17775 by alzander
Ian,
I've done a bit of looking today, and hopefully have an answer for you. We'd love it if you could make the following modification to our SCLogin module, and if it works, let us know. We'll include the change in the upcoming 4.1.1 release.

Edit the /modules/mod_sclogin/helper.php file. Around line 124, you'll see the following (in the getLoginRedirect function):
if ($router->getMode() == JROUTER_MODE_SEF)
Simply change that to:
if (false)

I'm honestly not sure why we're doing the code like that. It was likely copied originally from the Joomla login module, but don't really think it's the right way to do what needs to be done.

Anyways, please test, and let us know how it goes. Hopefully, this will fix you right up.

Thanks, and good luck,
Alex
The topic has been locked.