title: Prevent Flask from Displaying '.html' in URL
body: <p>I'm working on a project, using Flask. Apart from the index page, all other pages have '.html' extension displayed at the end of their URL (for example <code>127.0.0.1:5000/mypage.html</code>), which is normal. For some reasons, i do not want the extension displayed, i prefer the URL displays with the extension (like this <code>127.0.0.1:5000/mypage</code>. Here's what i have:</p>
  <blockquote>
  <p>Flask</p>
  </blockquote>
  <pre><code>@app.route('/mypage', methods=['POST', 'GET'])
  def mypage():
      return render_template('/mypage.html')
  </code></pre>
  <blockquote>
  <p>HTML</p>
  </blockquote>
  <pre><code>&lt;a href=&quot;mypage.html&quot;&gt;Mypage&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  <p>I'll appreciate any help with this.</p>