Topic-icon Login/Logout redirection wrong page

Active Subscriptions:

None
12 years 3 months ago #41546 by orymcl
When I login or logout I am getting redirected to an incorrect page. I have set the redirection settings in JFB however the SC_Login module is still not redirecting to those pages, rather it is redirecting to a page that does not exist, or to be more specific, redirecting www.my-domain.com/?Itemid=1

Why is this?
The topic has been locked.
Support Specialist
12 years 3 months ago #41549 by alzander
Are you logging in with Joomla credentials? If so, you need to set the options in the SCLogin module for "Login Redirection" and "Logout Redirection".

That should be all you need. If that doesn't work though, check to make sure the URL you're redirecting to is available to the user. For example, your Logout redirection URL isn't to a Registered page or your Login URL isn't set to a Special page or something like that.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 3 months ago #41587 by orymcl
Screenshot of module login settings
File Attachment:



screenshot of module logout settings

File Attachment:


Screenshot of the page I get when both logging in and logging out.

File Attachment:


As you can see they are not redirecting to the chosen menus in the settings. Please help.
The topic has been locked.
Support Specialist
12 years 3 months ago #41602 by alzander
I just got into the admin area to investigate this further. I'm not sure where the issue is coming from, but it's not specific to our SCLogin module or JFBConnect.

If you login (using any method) and then click the little logout button in the JomSocial toolbar on the right-hand side (the door with an arrow), you'll be brought to:
www.opotiki.net.nz/component/community/?Itemid=1
There is no menu item with an ID of 1 in your Menu Manager, so I'm not sure where that's being added from. The addition of that Itemid to all attempts to logout is the problem though, since the ?Itemid=1 is the only query variable Joomla can see, so it tries to use it to load a non-existent menu item.

I did update your Logout Redirection URL to JomSocials' home page, and that works properly (even though the Itemid=1 is still there). You could also use "Same Page", which would work whenever a user tried to logout on any page except your home page.

I hope that helps you narrow things down. I'm not sure what is inserting that Itemid=1 everywhere though.

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

None
12 years 3 months ago #41603 by orymcl
Found a forum, and found that jomsocial had a redirect plugin. Once disabled it solved the problem, thanks for the help alex.
The topic has been locked.
Support Specialist
12 years 3 months ago #41607 by alzander
Awesome! Glad to hear we're tackling most of the issues you are running into! We'll try to get the last remaining Open Graph things fixed up over the next day or so as well.

Thanks,
Alex
The topic has been locked.