Why doesn't rendering a template work when there's a trailing slash in app.route?
<p>I'm working with a Flask application and having some route trouble.</p>

<p>The following function works fine (as in renders the template as expected): </p>

<pre><code>@app.route('/page1', methods = ['POST'])
def page1():
    ...
    return render_template('page1.html')
</code></pre>

<p>However, the nearly identical function</p>

<pre><code>@app.route('/page1/', methods = ['POST'])
def page1():
    ...
    return render_template('page1.html')
</code></pre>

<p>is no longer able to load any of the css resources associated with <code>page1.html</code>. The html loads without a hitch, it's the just the other resources that are not findable.</p>

<p>If someone has some insight into why the extra trailing slash is making this happen, that would be  great!</p>