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 0022b3d1324..f0a46b67207 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 @@ -513,8 +513,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(); }