Skip to content

Commit

Permalink
Revert "Always pass resolved siteaccess to avoid missing root Locatio…
Browse files Browse the repository at this point in the history
…n ID in CLI context"

This reverts commit 2f6edc9.
  • Loading branch information
pspanja committed May 3, 2024
1 parent e94baa8 commit 9543130
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bundle/Routing/GeneratorRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 9543130

Please sign in to comment.