@register.simple_tag
def clean_full_uri(request):
    return '%s://%s%s' % ('https' if request.is_secure() else 'http',
                          request.get_host(), request.path)
Return the full URI without querystrings
dataset/ETHPy150Open ofa/connect/open_connect/connect_core/templatetags/urltools.py/clean_full_uri