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

You can catenate the url paramater in navigate target, e.g…

UI.getCurrent().navigate("main/"+id);