Topic-icon Custom return url

Active Subscriptions:

None
6 years 9 months ago #62111 by ensoptical
Custom return url was created by ensoptical
Hi,

Is it possible to specify the return url using the login button (easy tag or the custom login button) as I sometimes need a different redirect for some pages.

It would be great if you can help.

Cheers,
Eddie
The topic has been locked.
Support Specialist
6 years 9 months ago #62115 by alzander
Replied by alzander on topic Custom return url
Eddie,
Unfortunately, no, we don't support that right now. It's come up as a request every so often, but it's more difficult to implement than it sounds and just not something we've been able to prioritize.

Just to make sure I understand, are you asking for the normal Joomla login or for the social network login buttons?

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

None
6 years 9 months ago - 6 years 9 months ago #62116 by ensoptical
Replied by ensoptical on topic Custom return url
Hi Alex,

That's a shame.

To clarify I was referring to logging in via the social network login buttons via the {jfbclogin} easy tag or the
<a href="javascript:void(0)" onclick="jfbc.login.provider('facebook');"><img src="/linktoimage.jpg" /></a>  

on the call to jfbc.login.provider would it be possible to pass the return URL there?

Also to clarify on the site I'm using this we have subscriptions so there are two points in which a person can login, either on the members page or on the prices page when they have selected the subscription, on the later we need the return URL to be the same so that they can continue with the subscription payment, if they have already logged in before we have a redirect to the user dash so if they are logging in via the prices page for an extra subscription then it redirects to the user dash. I have been able to overcome this with a javascript redirect and left JFBConnect redirects as same page for new and returning users but it is a messy way of doing it as I'm unable to hide the menu item for where they logged in. I hope this makes sense!

Cheers,
Eddie
Last edit: 6 years 9 months ago by ensoptical.
The topic has been locked.
Support Specialist
6 years 9 months ago #62148 by alzander
Replied by alzander on topic Custom return url
Eddie,
No, we don't have the ability to pass the URL through the Javascript call. It's more complex than that because there's a roundtrip that needs to be made to Facebook's servers to do the authentication. The redirect URL would need to be stored while the user leaves the site and then re-fetched when they return. It's not impossible, just not something we support right now.

Before I read your full synopsis, the suggestion I would have had is exactly what you did.. use the Same Page option and then use some other redirects via a plugin or somewhere else to redirect to specific pages when necessary.

Sorry I don't have a better answer for you right now, but we do have this on our to-do list.. I just don't have any timeframe for when it may be implemented.

Thanks,
Alex
The topic has been locked.