MDL-10115 User profile: Use moodle_url and html_writer::link for course links on user profiles