have you tried outputting this to the page somewhere to see what it says? I’d first try outputting all the parts to the page to see what is going on, and then worry about getting the class to show.
then don’t you just need to compare it to child.url?
if not can you show what the value is of both?
I wouldn’t be worried about getting the active class to work yet, just try to get the comparison to work and output the different pieces so you can see what they are as you change things.
I thought your issue was with the other side of the comparison but apparently not? if child.url doesn’t exist then the other side to compare to doesn’t really matter.
my code wasn’t tested, you’ll need to fiddle around and see if you can ever get child.url to do anything.
the initial question was how to get the site.lang as a prefix to the pag.url.
From what I can tell that has been accomplished? but now the child.url is nothing?
did the child.url ever work? is the path for the link set when you do this: <li><a href="{{ child_url }}" class="{{ active }}">{{ child.title }}</a></li>
is there a link to the repo and actual site you can share?
I’m guessing you are talking about the main nav bar along the top of the page? if so maybe you are looking at the wrong include? maybe the nav.html file is what you want?