diff --git a/uc_cart/tests/uc_cart.test b/uc_cart/tests/uc_cart.test
index cbc802b..8df939d 100644
--- a/uc_cart/tests/uc_cart.test
+++ b/uc_cart/tests/uc_cart.test
@@ -199,7 +199,7 @@ class UbercartCartSettingsTest extends UbercartTestHelper {
       0,
       t('Continue shopping link appears on the page.')
     );
-    $links = $this->xpath('//a[@href="' . url('node/' . $this->product->nid, array('absolute' => TRUE)) . '"]');
+    $links = $this->xpath('//a[@href="' . url('node/' . $this->product->nid) . '"]');
     $this->assertTrue(
       isset($links[0]),
       t('Continue shopping link returns to the product page.')
diff --git a/uc_cart/uc_cart.module b/uc_cart/uc_cart.module
index f5c0336..f4f17c5 100644
--- a/uc_cart/uc_cart.module
+++ b/uc_cart/uc_cart.module
@@ -1532,18 +1532,18 @@ function uc_cart_add_item($nid, $qty = 1, $data = NULL, $cid = NULL, $msg = TRUE
             }
             $redirect = variable_get('uc_add_item_redirect', 'cart');
             if ($redirect != '<none>') {
-              $_SESSION['uc_cart_last_url'] = uc_referer_uri();
+              $_SESSION['uc_cart_last_url'] = request_uri();
               return $redirect;
             }
             else {
-              return uc_referer_uri();
+              return request_uri();
             }
           }
         }
         else {
           drupal_set_message($message, 'error');
         }
-        return uc_referer_uri();
+        return request_uri();
       }
     }
   }
@@ -1586,11 +1586,11 @@ function uc_cart_add_item($nid, $qty = 1, $data = NULL, $cid = NULL, $msg = TRUE
 
     $redirect = variable_get('uc_add_item_redirect', 'cart');
     if ($redirect != '<none>') {
-      $_SESSION['uc_cart_last_url'] = uc_referer_uri();
+      $_SESSION['uc_cart_last_url'] = request_uri();
       return $redirect;
     }
     else {
-      return uc_referer_uri();
+      return request_uri();
     }
   }
 }
