Page.setLocation in Vaadin 10 ?

In Vaadin 8 there was method Page.setLocation. What is replacement in Vaadin 10 ?

I am pretty new to vaadin, but I am using UI.ifPresent(ui->ui.navigate()) to switch views. Is that what you are looking for?

Daniel Hons:
I am pretty new to vaadin, but I am using UI.ifPresent(ui->ui.navigate()) to switch views. Is that what you are looking for?

No. I use for navigating between views the specific navigate methods like you. But in this case I need to navigate to external (non-static resource) url.

Would an Anchor or JavaScript be an option?
See https://vaadin.com/forum/thread/17154628

Thank you very much ! That is exactly, what I was looking for.