How do I navigate in Vaadin by updating the URL?

Hi!

I know that’s is possible to navigate in Vaadin by using

UI.getCurrent().navigate(MyView.class);

But that will only change the view and change the text in the URL brower text box. Not actully reload the page by doing this.

UI.getCurrent().getPage().reload();

I’m using OAuth2 with Spring Boot + Vaadin and I need to make sure that Vaadin don’t show the view for unauthorized users.

Solved with:

UI.getCurrent().getPage().setLocation("yourPathHere");

Hi,

there is also:

UI.getCurrent().navigate("location");

Regards

INPUTsys Chris Peter:
Hi,

there is also:

UI.getCurrent().navigate("location");

Regards

Not the same. It will not update the page.