How to assign the class "active" based on the path /{{ site.lang }} {{ page.url }}?

This code outputs:

it doesn't work, child.url =
page url with append: en/articles/cryptocurrency/