title: how do I redirect to the flask blueprint parent?
body: <p>Suppose i have the following structure:</p>
  
  <pre><code>/root/user/login
  </code></pre>
  
  <p>I do the login in a blueprint:</p>
  
  <pre><code>  app.register_blueprint(login_blueprint,url_prefix=prefix('/user'))
  </code></pre>
  
  <p>I can redirect to ".index":</p>
  
  <pre><code>@login_blueprint.route('/login', methods=['GET', 'POST'])
  def login():
      if request.method == 'POST':
          #### this redirects me to '/root/user/'
          redirect_to_index= redirect(url_for('.index'))
          response = current_app.make_response(redirect_to_index)
          # do the log in
       return response
  
      redirect_to_index=redirect(url_for('.index'))
  
      response = current_app.make_response(redirect_to_index)
  </code></pre>
  
  <p>The redirect brings me to <code>/root/user</code>:</p>
  
  <pre><code>redirect(url_for('.index'))
  </code></pre>
  
  <p>But how to get to <code>/root</code> (which is up relative to the current url (<code>..</code>)?</p>