In vaadin 7 I used to do Page.getCurrent().open(“google.com”) and it would open google.com 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 = "http://google.com";
UI.getCurrent().getPage().executeJavaScript("window.location.replace(\"" + url + "\");");
UI.getCurrent().getPage().executeJavaScript("window.open('https://www.google.com');");
In case you are missing this feature in Router API, give thumbs up on this ticket: https://github.com/vaadin/flow/issues/4606
Thanks for both of you. I gave a thumbs up!