Moodle 3.1 - Essential 3.1.0.8 (Build: 2016061707)

Moodle 3.1 - Essential 3.1.0.8 (Build: 2016061707)

by Peter Koel -
Number of replies: 3

Hello,

   I would like to config one of the Marketing spots on the front page to email the content developer with suggestions, when clicked. When I try to use the mailto item in the URL, I get an error that it is invalid. How can I have one of the marketing spots open a new email? Is there a better way to do this?

Sincerely,

Peter

Average of ratings: -
In reply to Peter Koel

Re: Moodle 3.1 - Essential 3.1.0.8 (Build: 2016061707)

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Posting the actual error might help!!!!  Along with what you did exactly.

In reply to Gareth J Barnard

Re: Moodle 3.1 - Essential 3.1.0.8 (Build: 2016061707)

by Peter Koel -

Attached is the error I get

Attachment New Bitmap Image.jpg
In reply to Peter Koel

Re: Moodle 3.1 - Essential 3.1.0.8 (Build: 2016061707)

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, looks like no easy solution to this (bar ignoring that setting and writing you own button markup in the text box).  This is because the theme uses 'PARAM_URL' correctly: https://github.com/gjb2048/moodle-theme_essential/blob/master/settings.php#L1648 as defined here: https://github.com/moodle/moodle/blob/MOODLE_31_STABLE/lib/moodlelib.php#L235-L239 however looking at: https://tools.ietf.org/html/rfc2368 and https://tools.ietf.org/html/rfc6068 then 'mailto' is a valid URL / URI that Moodle core is incorrectly filtering.  Therefore core issue to raise (you) on the tracker.