def get_path(request, secure):
    """get_path returns full URL path"""
    uri = request.get_host() + request.get_full_path()
    if secure:
        uri = "https://" + uri
    else:
        uri = "http://" + uri
    return uri