Joomdle attempts to prepend Joomla URL

More
14 years 9 months ago - 14 years 9 months ago #1 by Jon
In "Site Administration" -> "Plugins" -> "Authentication" -> "Joomdle", field "Joomla URL" is set to my main site (say, " www.mainsite.com ").

My Moodle is on a subdomain, moodle.mainsite.com .

When a "Joomla-only" (not Moodle, and not Joomdle) user logs in via www.mainsite.com , it correctly goes to www.mainsite.com . But when a "Joomla-Moodle" (Joomla and Moodle) user logs in, Joomdle prepends the "Joomla URL" mentioned above, and the resulting redirect is " www.mainsite.com/https://www.mainsite.com ". Very awkward, very strange.

Help?
Last edit: 14 years 9 months ago by Jon.

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

More
14 years 9 months ago - 14 years 9 months ago #2 by Jon
In Joomdle configuration, I set "Use redirectless SSO" to "Yes". It achieves what I want for now. I had to relocate my Moodle to within my main domain, rather than on a subdomain.

Is there some way for Joomdle to STILL send the authentication to Moodle, even without redirect? I think I can do a quick hack for Joomdle to "NOT redirect and still send auth to Moodle". But is this a bug? Is there a setting I missed?
Last edit: 14 years 9 months ago by Jon.

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

More
14 years 9 months ago - 14 years 9 months ago #3 by Jon
Hey all! I found a bug and fixed it!

It's in moodleroot/auth/joomdle/land.php around lines 135-138.

The code forgot to test for $wantsurl that starts with https. Replace with this.
Code:
if (($wantsurl) && (substr ($wantsurl, 0, 7) != 'http://') && (substr ($wantsurl, 0, 8) != 'https://'))
Last edit: 14 years 9 months ago by Jon.

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

More
14 years 9 months ago #4 by Chris
Replied by Chris on topic Re: Joomdle attempts to prepend Joomla URL
Thanks for reporting and fixing. I will get Antonio to have a look once he returns next week.

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

More
14 years 9 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Re: Joomdle attempts to prepend Joomla URL
Thanks, I applied the fix for nex release.

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