Topic-icon Redirect existing FB user

Active Subscriptions:

None
12 years 9 months ago #10995 by fb_535910371
We got my problems fixed, but now when I login it redirects me to my NFL page. I would prefer it to go to the page it was on when I hit the login button. If you still have my user and pass your more than welcome to take a look.
www.WTreF.com
TIA
The topic has been locked.
Support Specialist
12 years 9 months ago #11002 by alzander
Replied by alzander on topic Redirect existing FB user
In the Configuration area of JFBConnect (in the admin area), under Login/Logout, simply set "Enable Returning User Redirection" to No. With it set like this, when a user logs in through Facebook, they will remain on the same page they were on.

Hope that helps, but if not, let us know!
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11008 by fb_535910371
You can take a look, it is already setup like that.
The topic has been locked.
Support Specialist
12 years 9 months ago #11013 by alzander
Replied by alzander on topic Redirect existing FB user
Russell,
There's something weird going on on your site that we've never seen before. Don't want to go into too much mumbo jumbo, but basically, on each page load, JFBConnect inserts some code/Javascript on the page so that, if the user logs in on that page, JFBConnect knows to send the user back to that page. On your site, I just looked, and this code was added multiple times, and each instance was a little different based on the last few pages I had viewed. So, there were 3 blocks of 'current urls', and when I logged in, it was sort of random which one JFBConnect would redirect the user too.

This didn't just affect JFBConnect, there were duplicate blocks from jReviews and some other things in there as well.

To fix, I went to Site->Global Configuration in the admin area, and in the System tab, I set Caching to "Off". This fixed the problem.

If you want to see the issue, simply re-enable caching (it was "On - Progressive Caching") and look at the HTML of the page. If you search for "jfbcLogoutLink" (a JFBConnect tag) or s2AjaxUri (a jReviews piece of code), you'll see both in there multiple times after you hit a few pages.

Really not sure why that would be happening. Obviously, caching is good to have on a site, but in your case, it was adding extra code and may have actually been slowing the site down overall.

Hope this helps, everything is working as expected now... Good luck, and let us know if you run into anything else!
Alex
The topic has been locked.