Get URL from address bar

I have a use case where I need to grab the full URL from the browser address bar programmatically. Is there a place I should look to be able to do this? Can I get the value of javascript:window.location.href from the server somehow?

Thanks

Yes:

            UI.getCurrent().getPage().executeJs("return window.location.href;").then(String.class, value -> {
                Notification.show("URL: " + value);
            });

You may also be interested in UI.getCurrent().getInternals().getActiveViewLocation().