diff --git a/flow-server/src/main/java/com/vaadin/flow/router/RouteConfiguration.java b/flow-server/src/main/java/com/vaadin/flow/router/RouteConfiguration.java index 158dc5140e3..9b73fd38835 100644 --- a/flow-server/src/main/java/com/vaadin/flow/router/RouteConfiguration.java +++ b/flow-server/src/main/java/com/vaadin/flow/router/RouteConfiguration.java @@ -511,8 +511,7 @@ public String getUrl(Class navigationTarget, if (!targetUrl.isPresent()) { throw new NotFoundException(String.format( "No route found for the given navigation target '%s' and parameters '%s'", - navigationTarget.getClass().getName(), - parameters.toString())); + navigationTarget.getName(), parameters.toString())); } return targetUrl.get(); }