Skip to content

Commit

Permalink
fix Builder alternates URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
veve40 committed Jun 6, 2024
1 parent 3250b22 commit 98035c9
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 98035c9

Please sign in to comment.