Skip to content

Commit

Permalink
Fix alternate locale URLs in Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier authored and mcaskill committed Jun 7, 2024
1 parent 9e7f42e commit fbfb1b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Charcoal/Sitemap/Service/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ protected function buildObject($objType, $objOptions, $parentData = null, $level
continue;
}

$url = trim((string) $this->renderData($objOptions['url'], $objData));
$presentedObject = $this->sitemapPresenter()->transform($object, $transformer);
$url = trim((string) $this->renderData($objOptions['url'], $presentedObject));

if (!$relativeUrls) {
$url = (string) $this->withBaseUrl($url);
}
Expand Down

0 comments on commit fbfb1b2

Please sign in to comment.