From 95431307659ef6a916f359ab84a4ce2c30e16baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Fri, 3 May 2024 08:53:42 +0200 Subject: [PATCH] Revert "Always pass resolved siteaccess to avoid missing root Location ID in CLI context" This reverts commit 2f6edc9abb0342e7cefd71c14f58c8703485162f. --- bundle/Routing/GeneratorRouter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundle/Routing/GeneratorRouter.php b/bundle/Routing/GeneratorRouter.php index 0983b6b2..fda8dcb6 100644 --- a/bundle/Routing/GeneratorRouter.php +++ b/bundle/Routing/GeneratorRouter.php @@ -157,6 +157,10 @@ private function resolveSiteaccessAndGenerate(APILocation $location, array $para $siteaccess = $this->currentSiteaccess->name; } + if ($siteaccess === $this->currentSiteaccess->name) { + return $this->generator->generate($location, $parameters, $referenceType); + } + $parameters['siteaccess'] = $siteaccess; $url = $this->generator->generate(