From 4ae1eda7168a9038ff1b89f9abe153af5f9a47d3 Mon Sep 17 00:00:00 2001
From: Dieter Holvoet <dieter.holvoet@gmail.com>
Date: Wed, 12 Feb 2025 17:38:07 +0100
Subject: [PATCH 1/2] Add 3202329-2.patch

---
 core/lib/Drupal/Core/Routing/UrlGenerator.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php
index 9aed80640121..ef0bbb27f318 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -290,6 +290,8 @@ public function generateFromRoute(string $name, array $parameters = [], array $o
     // Outbound path processors might need the route object for the path, e.g.
     // to get the path pattern.
     $options['route'] = $route;
+    // Outbound path processors might need the route name for the path.
+    $options['route_name'] = $name;
     if ($options['path_processing']) {
       $path = $this->processPath($path, $options, $generated_url);
     }
-- 
GitLab


From 5bb9ae2931ce78b2f5e4c2b4ea5ad8075b03cde7 Mon Sep 17 00:00:00 2001
From: Dieter Holvoet <dieter.holvoet@gmail.com>
Date: Wed, 12 Feb 2025 17:38:55 +0100
Subject: [PATCH 2/2] Also add route_parameters

---
 core/lib/Drupal/Core/Routing/UrlGenerator.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php
index ef0bbb27f318..4acd100c3770 100644
--- a/core/lib/Drupal/Core/Routing/UrlGenerator.php
+++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php
@@ -287,11 +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;
-    // Outbound path processors might need the route name for the path.
     $options['route_name'] = $name;
+    $options['route_parameters'] = $parameters;
     if ($options['path_processing']) {
       $path = $this->processPath($path, $options, $generated_url);
     }
-- 
GitLab