[3.9] Add UrlGenerator trait