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

Commit

Permalink
Fixing method for getting correct hrefs for child pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Slavin committed Nov 9, 2018
1 parent d3ee804 commit 5d6bdcc
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 5d6bdcc

Please sign in to comment.