Navigating to <root> doesn't change the url

Hi all,

I’m finding that if I navigate to a route, the url in the browser changes i.e. http://localhost:8080/login

	button.getUI().ifPresent(ui -> ui.navigate("login"));

If I navigate to < root > the url doesn’t change i.e. the view changes but the url doesn’t, it stays with http://localhost:8080/login

	Button button = new Button("Let's Go");
	button.addClickListener(e -> {
		if (!tx.getValue().trim().isEmpty()) {
			session.setAlias(tx.getValue().trim());
		}
	button.getUI().ifPresent(ui -> ui.navigate(""));

Is anybody else seeing this??

Regards,

Stuart.

Tried with platform 10.0.0.beta8, works fine for me, the url changes

Thanks for trying, sadly upgrading to beta8 hasn’t solved it for me.

Does your Route/View extend a UI or a Compontent? Mine extend VirticalLayout.

Oh and I am using spring boot too.

Stuart

I have the same problem. If I stay on http://localhost:8080/login and navigate(“test”), it navigate to test and the URL is http://localhost:8080/test. Everthing is fine.

But, if I stay on http://localhost:8080/login and navigate(“”), I will navigate to the root, but the URL will still be http://localhost:8080/login