title: How do I create a link to another html page?
body: <p>I have a form on one page that I want to submit to another page.  I can't figure out how to create the link to that second page.</p>
  
  <p>Project layout:</p>
  
  <pre class="lang-none prettyprint-override"><code>Fileserver/
      config.py
      requirements.txt
      run.py
      setup.py
      app/
          __init__.py
          static/
              css/
              img/
              js/
          templates/
              formAction.html
              formSubmit.html
              index.html
  </code></pre>
  
  <p><code>__init__.py</code>:</p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  
  @app.route('/')
  def index():
      ip = request.remote_addr
      return render_template('index.html', user_ip=ip)
  </code></pre>
  
  <p><code>index.html</code>:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;body&gt;
      &lt;ul&gt;
          &lt;li&gt;&lt;a href="/formSubmit.html"&gt;Check Out This Form!&lt;/a&gt;
      &lt;/ul&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I can see the page at localhost:5000/ without issue.</p>
  
  <p>I have also tried:</p>
  
  <pre><code>&lt;a href="{{ url_for('templates', 'formSubmit") }}"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>as well as:</p>
  
  <pre><code>&lt;a href="{{ url_for('formSubmit') }}"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>What am I missing?</p>