diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php
index 9aed80640121bc0162f2b570221d4044424316cb..4acd100c3770ac6d96a45f3f0082ac407f670d9b 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -287,9 +287,11 @@ public function generateFromRoute(string $name, array $parameters = [], array $o
 
     $this->processRoute($name, $route, $parameters, $generated_url);
     $path = $this->getInternalPathFromRoute($name, $route, $parameters, $options['query']);
-    // Outbound path processors might need the route object for the path, e.g.
+    // Outbound path processors might need the route information for the path, e.g.
     // to get the path pattern.
     $options['route'] = $route;
+    $options['route_name'] = $name;
+    $options['route_parameters'] = $parameters;
     if ($options['path_processing']) {
       $path = $this->processPath($path, $options, $generated_url);
     }