Query parameter goging lost after navigation

Hello all,

If I route to another view, the view is shown perfectly, but the query parameter are not longer in the URL.

Is there an easy way to stay with the query parameter?

Best Regards,
Thomas

Are you using reroute or forward? If so, take a look at https://github.com/vaadin/flow/issues/9526

Hello Martin,

The query parameter going lost by calling UI.getCurrent().navigate().

Best Regards,
Thomas

Hi Thomas,

When you call navigate() you have to provide the query parameters manually. That’s not an error but how it works.

See https://vaadin.com/docs/v14/flow/routing/tutorial-router-url-parameters

Hello Martin,

Thanks for the info! Is there a way to call something like reroute without adding the query parameter by clicking a button?

Best Regards,
Thomas

Thanks for the help! I changed the software and now it works lice expected :slight_smile: