Hi,
following what it is described in https://vaadin.com/docs/v12/flow/routing/tutorial-routing-lifecycle.html I have created an app with two routes: “blog” and “no-items”.
Browsing to localhost:8080/blog, the BeforeEnter event is properly triggered, the event.rerouteTo(NoItemsView.class) instruction is executed and I see the text “No items found”.
Great but I was expecting browser location (the URL in the browser bar) to change to the new route (“no-items”) but, instead, it remains to “blog”.
So the browser shows the “blog” URL but the “no-items” contents.
It is the intended behavior or it is a bug?
If it is the correct behavior, how can I fully navigate to a new route from the BeforeEvent handler?
Gualtiero