MDL-40635 moodle_url: can now set anchor during construction