diff --git a/CHANGELOG.md b/CHANGELOG.md index 580b5f78d06..eb0e6bafce6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Fixed a bug where links within the Queue Manager utility weren’t styled like links. ([#14716](https://github.com/craftcms/cms/issues/14716)) - Fixed a bug where tooltips within element labels caused the element title to be read twice by screen readers. - Fixed a styling issue when editing an entry without any meta fields. ([#14721](https://github.com/craftcms/cms/issues/14721)) +- Fixed a bug where the `_includes/nav.twig` template wasn’t marking nested nav items as selected. ([#14735](https://github.com/craftcms/cms/pull/14735)) ## 5.0.0 - 2024-03-26 diff --git a/src/templates/_includes/nav.twig b/src/templates/_includes/nav.twig index b676ca924d0..733534750ea 100644 --- a/src/templates/_includes/nav.twig +++ b/src/templates/_includes/nav.twig @@ -9,7 +9,7 @@ } %} {% if item.heading is defined %} {{ item.heading }} - {{ _self.list(item.nested) }} + {{ _self.list(item.nested, selectedItem) }} {% else %} {{ tag('a', { class: {