def login_url(login_view, next_url=None, next_field='next'):
    if login_view.startswith(('https://', 'http://', '/')):
        base = login_view
    else:
        base = url_for(login_view)

    if next_url is None:
        return base

    parts = list(urlparse(base))
    md = url_decode(parts[4])
    md[next_field] = make_next_param(base, next_url)
    parts[4] = url_encode(md, sort=True)
    return urlunparse(parts)
Opens a volume object defined by path specification.
dataset/ETHPy150Open maxcountryman/flask-login/flask_login/utils.py/login_url--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/volume/tsk_volume_system.py/TSKVolumeSystem.Open