Skip to content

Commit

Permalink
fix: Schema graph correctly renders DataObjects as Pages (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mleutenegger authored Mar 10, 2024
1 parent 1ae65af commit 0f347be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Extensions/SEOExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,9 @@ public function getBreadcrumbListSchema(SiteTree $page)
// $breadCrumbs = array_reverse($breadCrumbs);
if (!($owner instanceof SiteTree)) {
$breadCrumbs[] = [
$breadCrumbs[] = [
"@type" => "ListItem",
"name" => $owner->getSEOTitle(),
"item" => $owner->AbsoluteLink()
]
"@type" => "ListItem",
"name" => $owner->getSEOTitle(),
"item" => $owner->AbsoluteLink()
];
}
for ($i=0; $i < count($breadCrumbs); $i++) {
Expand Down

0 comments on commit 0f347be

Please sign in to comment.