Navigate to page, outside of vaadin, programmatically

In vaadin 7 I used to do Page.getCurrent().open(“”) and it would open in the same browser window. I can’t find the alternative for vaadin flow. The routing mechanism is only for in-app navigation. Any ideas how can I do this?

Solved it with javascript.

String url = "";
UI.getCurrent().getPage().executeJavaScript("window.location.replace(\"" + url + "\");");


In case you are missing this feature in Router API, give thumbs up on this ticket:

Thanks for both of you. I gave a thumbs up!