HasUrlParameter interface

I have a Route implementing the HasUrlParameter interface.
The setParameter(BeforeEvent event, T parameter) is called twice though.
Is that normal behaviour?

@Route(value = "dashboard", layout = MainLayout.class)
public class Dashboard extends Div implements HasUrlParameter<String>, TextFieldChangeListener {
public void setParameter(BeforeEvent event, @OptionalParameter String parameter) {


No, doesn’t sound normal to me. Which exact version are you using? Does the double setParameter happen when you navigate to the route with the URL directly, or when you navigate programmatically? Can you reproduce the behavior in a plain starter project?

Version is 14.0.14

The route is accessed through user interaction.

RouterLink dashboard = new RouterLink(null, Dashboard.class);

I can set up a starter project when i find the time …

Ok i set up a starter project and it’s called only one time each request.
I have to investigate … :wink:

I think the problem is the RouterLink. If i navigate to the page directly the method is only called once.