title: Flask - redirect url_for Error
body: <p>Am having errors thrown in my flask application for the below Code.</p>
  
  <pre><code>@@app.route('/')
  .....
  
  return redirect(url_for('nextPage'),id=DBTable.id)
  
  
  @app.route('/&lt;path:id&gt;')
  @login_required
  def nextPage(id):
  return render_template('page2.html')               
  
  Error - 
  ---------------------------------------------------------------------------
  File "C:\Python27\lib\site-packages\werkzeug\routing.py", line 1607, in build
  raise BuildError(endpoint, values, method)
  BuildError: ('nextPage', {}, None)
  &lt;SocketIOServer fileno=116 address=0.0.0.0:5000&gt;: Failed to handle request:
  request = POST /landingPage HTTP/1.1 from ('127.0.0.1', 50287)
  application = &lt;flask.app.Flask object at 0x0000000002643B70&gt;
  </code></pre>
  
  <p>Kindly help me with the above issue</p>