title: TypeError: url_for() takes 1 positional argument but 2 were given
body: <p>If x=ohio </p>
  
  <p>I want to redirect the user to /weather/ohio</p>
  
  <p>All I have been able to get to work is /weather/?x=ohio</p>
  
  <p>I am doing this so a second route  @app.route("/weather/")  will be run.  I am not sure what I am missing.  IS this the best way to load /weather/ohio, where ohio is a variable loaded from a form.  </p>
  
  <pre><code>    @app.route("/weather/", methods = ['POST', 'GET'])
  def weather():
      if request.method == 'POST':
          x = request.form['search_location']
          return redirect(url_for('weather', x=x))
          #print (y)
      else:
          return render_template("weather.html")
  </code></pre>
  
  <p>If I take the x= out I get the error "TypeError: url_for() takes 1 positional argument but 2 were given"</p>