How to get URL with Vaadin 13?

How can I get the URL of the current page?

Hi Davide,

getCurrent()

take a look in the link: [URL Generation]
(https://vaadin.com/docs/v13/flow/routing/tutorial-routing-url-generation.html)

String route = UI.getCurrent().getRouter()
                .getUrl(PathComponent.class);
        Anchor link = new Anchor(route, "Path");
        add(link);