URLs now use moodle_url so it should work if moodle is in a subdirectory