Get the current URL (Vaadin 14)

Is there any way in Vaadin 14 to get the current page URL?

There is currently no Java API for this, the feature request is here:

It is possible to do JavaScript call from server with return value call back and obtain the window.location.href from the Browser though.