Add "active" class automatically to Url
In the documentation is not present, but on $options array we can simply set "set_active_class" to TRUE (FALSE by default) and then drupal add a "is-active" class to the link:

Url::fromUri('internal:/progetti/selezionati', array('set_active_class' =&gt; TRUE)),


I think that this behaviour should be TRUE by default..