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(