Topic-icon Login on text link click, then redirect to originating page

Active Subscriptions:

None
Hello, Is there a way to display the login form and social connect buttons when users click certain links on my site for which they need to be registered to open? At the moment I have these linking to the default register/login page, but it would be great if the users could be automatically sent back to the page they came from after a successful login.

Is this possible to implement with JFB connect.

Thanks for any help!
The topic has been locked.
Support Specialist
Not in an automated way. Joomla only decides when a link requires authentication after it's been clicked and sent back to Joomla to render that page. It's only then that Joomla performs the automatic redirection to the login page.

Because of this, when a page is rendered, there's no way for JFBConnect (or the SCLogin module) to know which links are going to require authentication and which won't. If that was something we could do (efficiently) ahead of time, we would love to as what you're requesting isn't an uncommon request.

Sorry I can't give you the exact answer you were looking for, but hopefully the above explains a bit better.

Thanks,
Alex
The topic has been locked.