At the moment we don't pass parameters from the current request to the url generator, so the api does not work really simply for many cases.
In order to implement it, we need #2031487: Don't replace the upcasted values in the request attributes array to be in.