def canonicalize_url(url, keep_blank_values=True, keep_fragments=False):

    scheme, netloc, path, params, query, fragment = parse_url(url)
    keyvals = cgi.parse_qsl(query, keep_blank_values)
    keyvals.sort()
    query = urllib.urlencode(keyvals)
    path = safe_url_string(_unquotepath(path)) or '/'
    fragment = '' if not keep_fragments else fragment
    return urlparse.urlunparse((scheme, netloc.lower(), path, params, query, fragment))
View for about page
dataset/ETHPy150Open scrapinghub/frontera/frontera/utils/url.py/canonicalize_url--crossover with--dataset/ETHPy150Open upconsulting/IsisCB/isiscb/isisdata/views.py/about