Updated YOURLS to use the expand API action. Updated calendar to use this to avoid HTTP->HTTPS redirection which seems to fail in PHP.