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 fb56849.
  • Loading branch information
pspanja committed May 3, 2024
1 parent fb56849 commit 1d49591
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 @@ -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(
Expand Down

0 comments on commit 1d49591

Please sign in to comment.