Index: uc_tracking.module
=========================================================
--- uc_tracking.module	(revision 1.4.2.2)
+++ uc_tracking.module	Working Copy
@@ -49,7 +49,7 @@
     if ($user->uid) {  // no order info page for anonymous users
       $items[] = array(
         'title'    => t('Package Tracking'),
-        'path'     => 'user/'. $user->uid .'/orders/track',
+        'path'     => 'user/'. arg(1) .'/orders/track',
         'callback' => '_uc_tracking_dispatch',
         'type'     => MENU_CALLBACK,
       );
@@ -69,7 +69,7 @@
   else {  // dynamic - loads after the core uc_order menu
     if ($user->uid) {  // no order info page for anonymous users
       $items[] = array(
-        'path'        => 'user/'. $user->uid .'/orders',
+        'path'        => 'user/'. arg(1) .'/orders',
         'title'       => t('Orders'),
         'description' => t('View your order history.'),
         'callback'    => 'uc_tracking_order_history',  // here's the magic
@@ -118,7 +118,7 @@
   $output  = theme('uc_tracking_detail', $detail);
 
   // Add link for return to order history page i.e. user/#/orders
-  $output .= theme('links', array(array('title' => t('Return to order history'), 'href' => 'user/'. $user->uid .'/orders')));
+  $output .= theme('links', array(array('title' => t('Return to order history'), 'href' => 'user/'. arg(1) .'/orders')));
 
   return $output;
 }
@@ -574,7 +574,7 @@
     foreach ($item['children'] as $number) {
       $links[] = array(
         'title' => $number,
-        'href'  => 'user/'. $user->uid .'/orders/track/'. strtolower($carrier) .'/'. $number,
+        'href'  => 'user/'. arg(1) .'/orders/track/'. strtolower($carrier) .'/'. $number,
       );
     }
   }
