'Build the path URL to use.'

@property
def path_url(self):

    url = []
    p = urlsplit(self.full_url)
    if (p.scheme in self.proxies):
        (url_base, frag) = urldefrag(self.full_url)
        return url_base
    path = p.path
    if (not path):
        path = '/'
    url.append(path)
    query = p.query
    if query:
        url.append('?')
        url.append(query)
    return ''.join(url)
