--- rolecontact.module	2007-11-17 06:34:34.000000000 +0200
+++ rolecontact.module.new	2008-01-13 00:13:01.409276185 +0200
@@ -487,7 +487,7 @@
 }
 
 function _create_user_rolecontact_link($cid) {
-  return '<a class="contact-link" href="/contact/'. $cid .'">contact form</a>';
+  return '<a class="contact-link" href="'. url('contact/'. $cid) .'">contact form</a>';
 }
 
 /**
@@ -824,8 +824,8 @@
             $output .= '        <div class="fields fields-fullname">';
             $output .= '           '. $name .' ';
             if ($show_link) {
-              $url = "/rolecontact_list/". $account->name;
-              $output .= '            (<a href="'. $url .'">profile</a>)';
+              $url = "rolecontact_list/". $account->name;
+              $output .= '            ('. l('profile', $url) .')';
             }
             $output .= '        </div>';
             $name_added = true;
