I changed it to use the current request. The url generation problem in subrequest is also the same for path() and url(). So has nothing to do with this pr.

@fabpot its ready for me