How to get the path / location in a view?

I have a view (based on VerticalLayout) with several RouteAlias annotations. Can I get the URL used to access this view?

So you want to know which one of the route aliases is used?

Yes, exactly.

Not soo elegant, but you can get the whole URL with Page::fetchCurrentUrl

I’ll try it, thanks for the tip.