×
How To / General
User Hooks interfering with CB login redirect
3 months 3 weeks ago
Topic Author
User Hooks interfering with CB login redirect #1
Hello,
On my site I use both Community Builder and Joomdle. I recently updated from Joomla 3 to Joomla 4.
Now I noticed that the CB redirects upon login are no longer working (logout redirect still works fine).
More particularly, I had a redirect set up that brings new users to a certain URL on their first login only. This no longer works, but any other login redirect configured in CB also doesn't work.
After checking this out, I discovered that it is the plugin User Hooks of Joomdle causing this. If I set it to "none" or disable the plugin, my redirects work again as they should. However, that means the user is no longer automatically logged in to Moodle.
What can I do to get my redirects to work again, without having to disable the single sign on or other functionality of Moodle User Hooks?
I know that it worked before without a problem on Joomla 3.
Thanks!
On my site I use both Community Builder and Joomdle. I recently updated from Joomla 3 to Joomla 4.
Now I noticed that the CB redirects upon login are no longer working (logout redirect still works fine).
More particularly, I had a redirect set up that brings new users to a certain URL on their first login only. This no longer works, but any other login redirect configured in CB also doesn't work.
After checking this out, I discovered that it is the plugin User Hooks of Joomdle causing this. If I set it to "none" or disable the plugin, my redirects work again as they should. However, that means the user is no longer automatically logged in to Moodle.
What can I do to get my redirects to work again, without having to disable the single sign on or other functionality of Moodle User Hooks?
I know that it worked before without a problem on Joomla 3.
Thanks!
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago
User Hooks interfering with CB login redirect #2
Hi.
The easiest way to avoid that kind of issues is to use redirect-less SSO where it is possible (same domain for Joomla and Moodle, curl available).
> I know that it worked before without a problem on Joomla 3.
If you were using SSO with redirect before and it worked fine, I guess something has changed either in Joomla or CB. I will try to do some testing soon and get back to you.
The easiest way to avoid that kind of issues is to use redirect-less SSO where it is possible (same domain for Joomla and Moodle, curl available).
> I know that it worked before without a problem on Joomla 3.
If you were using SSO with redirect before and it worked fine, I guess something has changed either in Joomla or CB. I will try to do some testing soon and get back to you.
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago
Topic Author
User Hooks interfering with CB login redirect #3
Apparently SSO was turned off, not sure why (I know it used to be turned on before). Anyway, I turn it on and now the CB redirect works (and the SSO for Moodle also), so that was the solution. Thanks!
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago
User Hooks interfering with CB login redirect #4
Great, thanks for the feedback, I am glad it is solved.
> Apparently SSO was turned off, not sure why (I know it used to be turned on before).
I guess you mean redirect-less SSO. That makes sense, as getting the SSO with redirect to work with custom redirects is more difficult.
> Apparently SSO was turned off, not sure why (I know it used to be turned on before).
I guess you mean redirect-less SSO. That makes sense, as getting the SSO with redirect to work with custom redirects is more difficult.
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago
Topic Author
User Hooks interfering with CB login redirect #5
Yes that's what I meant. Not sure why it was turned off.
Some days ago we were looking to resolve an issue why Joomla and Moodle wouldn't connect with each other, so maybe I had turned it off then to see if that made a difference, but I'm not sure. Anyway, it was a simple solution. Thanks!
Some days ago we were looking to resolve an issue why Joomla and Moodle wouldn't connect with each other, so maybe I had turned it off then to see if that made a difference, but I'm not sure. Anyway, it was a simple solution. Thanks!
Please Log in or Create an account to join the conversation.