Eradicating url() calls

I suggest you use $node->url('canonical', array('absolute' => TRUE) and so on for this.