Topic-icon Redirect to same page after login

Active Subscriptions:

None
8 years 4 months ago - 8 years 4 months ago #42469 by bjohaa
Hi,

I want SC login to redirect to same page after login.

Settings in SClogin module: joomla redirection url: same page.

Settings in JFB configuration: new user redirection same page, returning user : same page.

Now if use login with facebook it does work properly, however when i fill in my credentials and press login i get redirected to main page wich obviously is NOT what i want.

I use community builder as registration component. I tried using CB login wich works fine.

Plz advice!
Last edit: 8 years 4 months ago by bjohaa.
The topic has been locked.
Support Specialist
8 years 4 months ago #42473 by alzander
Not sure what's happening here. Can you let me know what version of CB you're using? It's possible there's something we're missing. The SCLogin is simply handing off the username and password to CB and having CB authenticate the user and perform the redirect. The SCLogin module would be passing the URL to go to, but plugins or CB itself could choose to redirect the user to a different location. We'll just have to narrow down what may be happening.

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

None
8 years 4 months ago - 8 years 4 months ago #42476 by bjohaa
I am on CB 1.9.1.

I do not understand why CB would be the problem, since the CB login redirect is working fine.
Last edit: 8 years 4 months ago by bjohaa.
The topic has been locked.
Active Subscriptions:

None
8 years 4 months ago #42515 by bjohaa
Alex,

I don't want to push you but could you please help me narrow down? I have a LOT of people complaining about this :(

I checked plugins: User, system, authenticate... im not a pro but i don't see any weird things.

Wich plugins should i look for (wich might interfere?)

As said, CB is configured properly as far as i know, i did look into it and dont see anything weird.

If needed i am willing to send my superadmin to you to investigate...

Regards,

Bjorn
The topic has been locked.
Support Specialist
8 years 4 months ago #42531 by alzander
Sorry for the delay. We've been trying to recreation this and simply can't on any of our dev sites. I also just looked at your site. The module is inserting the correct variables into the page. Specifically, in the login form, the following input is set:
<input type="hidden" name="option" value="com_comprofiler" />
<input type="hidden" name="task" value="login" />
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="dutch" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="return" value="B:aHR0cDovL3BhcnR5LXZlcnZvZXIubmwvZXZlbmVtZW50ZW4="/><input type="hidden" name="cbsecuritym3" value="cbm_6c32f769_25113913_f7d233070a6ce4cd210ae4b558aa583b" />
Those show that the form should be submitted to CB, as expected. The 'return' variable has a value that begins with "B:", which is required by Community Builder to denote that it's a base64 encoded URL. When that URL is decoded, it comes out to:
http://pa.....oer.nl/evenementen, which was the current page I was looking at at the time.

So, everything seems right to me from the front-end. I can't see any issues, I can't recreate it locally, and no other users are reporting this problem.

From here, I'd ask you send me a set of Super Admin credentials so we can investigate further what's going on. You can Private Message me by clicking the mail icon under my picture to the left.

It could be a problem with your SEF URLs (can you try turning them off, temporarily, to see if the redirect works?), a plugin (as mentioned above) or some other conflicting setting. I can't guarantee I'll be able to find it, because again, things look right to me.

The last thing I'd also ask is to configure the CB Login module to appear on some inner page of your site. With that, we can compare the output of our module vs CB Login to see if something screwy is going on.

I hope that helps get you started,
Alex
The topic has been locked.
Support Specialist
8 years 4 months ago #42551 by alzander
Thanks for the credentials. We found the issue, and it's something we haven't run into before. The problem was that you had enabled the "Encrypt Login Form" setting in the SCLogin module. That setting will force the login to be submitted over https (encrypted), which is a good thing and something we recommend doing.

However, it seems like CB won't redirect back to the non-encrypted URL, which is what we are setting for the page. For now, leave the encryption disabled (which is how the standard CB Login module works anyways) and the same page redirection will work as expected.

I hope that helps get you going, but should you need anything else, just let me know!

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

None
8 years 4 months ago - 8 years 4 months ago #42568 by bjohaa
Alex,

I dont know if you already changed things, but the problem is solved!

(I had mainbody set on display; none with css @ homepage)

Changed that and now login is working fine..
Last edit: 8 years 4 months ago by bjohaa.
The topic has been locked.
Support Specialist
8 years 4 months ago #42584 by alzander
I posted above you about the change I made. The encrypted form and CB didn't seem to get along nicely.

Glad it's working for you now though!
Alex
The topic has been locked.
Social Stream
Hide. Seek. Play!

Countdown Hide & Seek Game

Countdown, the new hide & seek toy, is available now! Designed and developed by the founders of SourceCoast, it's the perfect toy to get your kids moving at all ages.

Get the Hide and Seek Toy on Amazon