I'll fix this getting the url from the $config variable. We'll need to move that configuration into an xml file in a future ticket.