title: Url structure and form posts with Flask
body: <p>In Flask you write the route above the method declaration like so:</p>
  <pre><code>@app.route('/search/&lt;location&gt;/')
  def search():
    return render_template('search.html')
  </code></pre>
  <p>However in HTML the form will post to the url in this fashion:</p>
  <pre><code>www.myapp.com/search?location=paris
  </code></pre>
  <p>The latter seems to return a 404 from the application where</p>
  <pre><code>www.myapp.com/search/london
  </code></pre>
  <p>will return as expected.</p>
  <p>I'm sure that there is a simple piece of the puzzle that I'm not getting, but surely the routing engine will consider the query string parameters for meeting the rules requirements.</p>
  <p>If not, what is the optimal solution for this scenario as I'm sure 90% of developers must arrive at this point.</p>