Navigating to a static html page containing a redirect a meta tag using Va


I want to navigate to a static html page from within a Vaadin application that contains the following html.

<!DOCTYPE html>
<meta http-equiv="Refresh" content="0;url=">

How would I do that ?

thanks, John.

With ui.navigate(..) you can navigate only to registered routes, if you have external URL, then one alternative is to use ui.getPage().setLocation(..)


Do you mean UI.getCurrent().getPage().setLocation(…) ? This is not available in Vaadin 10 I don’t think.
Is there any other way?


Yes, it is a new method added in V14.

You can also do for example

ui.getPage().executeJavaScript("$0, $1)", url, "_self");