I tried using RouteConfiguration.forApplicationScope().getUrl(flowLoginView), but got
Caused by: java.lang.NullPointerException: Cannot invoke "com.vaadin.flow.server.VaadinService.getContext()" because the return value of "com.vaadin.flow.server.VaadinService.getCurrent()" is null
But the more important question - why do you need to repeat the code that Vaadin already runs in setLoginView?
If you otherwise give us a reason why you want to fetch the url path from the Login view route object, I’d hopefully get the problem you are trying to solve and could suggest you another solution.