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 9e3e11a.
  • Loading branch information
pspanja committed May 3, 2024
1 parent 9e3e11a commit 31cc3fd
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 31cc3fd

Please sign in to comment.