shouldn't the url be based on OC::$WEBROOT?