Menu from Page Matter (not config) when (index) Pages (and PDFs) are in Folders

Maybe I have something wrong, but that solution doesn’t work with my config/folders/files set as suggested above. It seems .IsMenuCurrent is not being picked up, the active class never gets set. This page addresses what seems to be the issue I’m facing: .IsMenuCurrent returns false for single pages

The workaround suggested in post #6 .IsMenuCurrent returns false for single pages - #6 by brossetti, specifically:

class=“{{ if (eq $currentPage.URL .URL) }}active{{ end }}”

does work. Active is set on the correct link using the above.