From 31cc3fd2486d8a0e119d5ebfed0d56a6e1003b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Fri, 3 May 2024 09:26:07 +0200 Subject: [PATCH] Revert "Always pass resolved siteaccess to avoid missing root Location ID in CLI context" This reverts commit 9e3e11adbab3488e08f4309d646921c2b9981912. --- bundle/Routing/GeneratorRouter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundle/Routing/GeneratorRouter.php b/bundle/Routing/GeneratorRouter.php index 7cfe4462..aa3fb878 100644 --- a/bundle/Routing/GeneratorRouter.php +++ b/bundle/Routing/GeneratorRouter.php @@ -158,6 +158,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(