On a page, where I have multiple ID’s for different blocs/sections, and I set the Menu entries to navigate to URL: /#about, /#contact, /#other-bloc and so on.
This all works well, except the active menu entry doesn’t change/shift.
Is it possible to make it active menu entry (is.active, or what it’s called) follow these ID, name or anchor tags?
Like I have:
… and Search links to /#search
If I click it, it navigates down to the Bloc with the ID search, but the Menu doesn’t indicate it’s navigated there …
…So, I need to add the attributes data-bs-spy and data-bs-target (and tabindex) to either the body (how do I accomplish that in Blocs?) or the bloc I’m scrolling to?
Still, using menu manager to manage the menu entries, and having some point to pages and others to URLs like /about/#contact was a little buggy, the scrollspy only looks for #id’s … or something.