Skip to Content Skip to Menu

How to redirect to a given URL after login ?

  • adips
  • adips
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
9 years 3 months ago #264562 by adips
Hi there,

I'm facing a issue with the Cb login page.

For the need of my personnal component, I check user rights to access a given URL. If the user is not connected, I redirect him to the Cb login page with this code : $app->redirect('index.php/cb-login/login');

As I could read in this topic : www.joomlapolis.com/forum/154-advanced-members-support/228771-stay-in-the-same-page-after-login#260057 , we can redirect the user to a given URL after login. But can you explain me with more details on how to do it ? How to give the return URL to CB Login page ?

Thanks for your lovely help !!!

Kind regards,
Stéphane

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 3 months ago #264616 by nant

adips wrote: Hi there,

I'm facing a issue with the Cb login page.

For the need of my personnal component, I check user rights to access a given URL. If the user is not connected, I redirect him to the Cb login page with this code : $app->redirect('index.php/cb-login/login');

As I could read in this topic : www.joomlapolis.com/forum/154-advanced-members-support/228771-stay-in-the-same-page-after-login#260057 , we can redirect the user to a given URL after login. But can you explain me with more details on how to do it ? How to give the return URL to CB Login page ?

Thanks for your lovely help !!!

Kind regards,
Stéphane


When posting always give version numbers.

Your Community Builder Login module has a Login Redirection URL
parameter you can use.

Please Log in or Create an account to join the conversation.

  • adips
  • adips
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
9 years 3 months ago #264634 by adips
Hi Nick.

Thanks for your answer. I'm using the latest version of CB : 2.0.8.

I can't user the global plugin parameter, since what I wanna do is loading the Url page where the user was before entering the login page. Or can I ? How ? :)

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum