Passing the id of an object to another view

I am new to Vaadin and I am trying to build a web application with multiple users and after they log in, I would like to redirect them to their own page and I want to do that by passing the id to the main view. I’ve read this [tutorial]
(https://vaadin.com/docs/flow/routing/tutorial-router-url-parameters.html), but it’s unclear to me what should I pass to UI.getCurrent().navigate(“main”, ???). Thank you for any help

Hi,

you can use the QueryParameter class for that.

Map<String, List<String>> myParams = new HashMap<>();
myParams.put("key1", Arrays.asList("value1", "value1A", "value1B"));
myParams.put("key2", ...);

QueryParameters queryParameters = new QueryParameters(myParams);
UI.getCurrent().navigate("bookings", queryParameters);  

Thank you for your help:)