@app.route('/absolute-redirect/<int:n>')
def absolute_redirect_n_times(request, n):
    n = int(n)
    assert n > 0

    if n == 1:
        return redirect(app.url_for('view_get', _request=request,
                                    _external=True))

    return _redirect(request, 'absolute', n, True)
302 Redirects n times.
dataset/ETHPy150Open mozillazg/bustard/tests/httpbin/core.py/absolute_redirect_n_times