public function absoluteURIFor(UriInterface $uri, $route, array $params = [], array $query = [])
    {
        $path = $this->uriFor($route, $params);

        return (string) $uri
            ->withUserInfo('')
            ->withPath($path)
            ->withQuery(http_build_query($query))
            ->withFragment('');
    }