How to get current URL in a template that's inside a component?

Thanks! Is target.url documented somewhere?

I’ve also found another approach (Get current URL in emberjs - #5 by seif) that uses afterModel and sets currentUrl once transition promise is resolved.