Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #9 from Marketo/feature/mdev-2200/fix-sitemaps
Browse files Browse the repository at this point in the history
Fixing method for getting correct hrefs for child pages
  • Loading branch information
JasonHowellSlavin authored Nov 9, 2018
2 parents d3ee804 + 5d6bdcc commit 4f4aed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Pages/SiteMapPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function processPageToHierarchicalHTML($xml, $page)
$li->a->addAttribute('href', $page->Link);

// check if the page has children and if so output them
$kids = SiteTree::get()->filter('ParentID', $page->ID);
$kids = $page->Children();
foreach ($kids as $subPage) {
$this->processPageToHierarchicalHTML(
$li,
Expand Down

0 comments on commit 4f4aed9

Please sign in to comment.