From 3124365a56695af4c378778404ffedf4ccabcc03 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 7 Oct 2020 18:25:13 +0100 Subject: [PATCH] Provide context to the recursive children in the structure tag (#2610) --- src/Tags/Structure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tags/Structure.php b/src/Tags/Structure.php index c3b4ab01b5..05f36a0592 100644 --- a/src/Tags/Structure.php +++ b/src/Tags/Structure.php @@ -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(); } }