fix problem with moodle 2.4 - wantsurl