diff --git a/src/Response/Response.php b/src/Response/Response.php
index eb75c24..c5e356f 100644
--- a/src/Response/Response.php
+++ b/src/Response/Response.php
@@ -53,7 +53,11 @@ class Response implements ResponseInterface {
    */
   public function getResponse() {
     if (!$this->response) {
-      $this->response = new TrustedRedirectResponse($this->url->toString());
+      // Ensure that bubbleable metadata is collected and added to the response
+      // object.
+      $url = $this->url->toString(TRUE);
+      $this->response = new TrustedRedirectResponse($url->getGeneratedUrl());
+      $this->response->addCacheableDependency($url);
     }
 
     return $this->response;
