Skip to content

Commit

Permalink
Provide context to the recursive children in the structure tag (#2610)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan McClean authored Oct 7, 2020
1 parent eee1244 commit 3124365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tags/Structure.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function toArray($tree, $parent = null, $depth = 1)
'is_current' => rtrim(URL::getCurrent(), '/') == rtrim($page->url(), '/'),
'is_parent' => Site::current()->url() === $page->url() ? false : URL::isAncestorOf(URL::getCurrent(), $page->url()),
'is_external' => URL::isExternal($page->absoluteUrl()),
]);
], $this->context->all());
})->filter()->values()->all();
}
}

0 comments on commit 3124365

Please sign in to comment.