title: Flask jinja template not recognizing css when more than 1 parameter is used
body: <p>I have a problem when rendering template in flask it doesn't recongnize the CSS file but this issue occurs only when I give more than one parameter to the funtion.</p>
  
  <p>for this example the css is working on the page:</p>
  
  <pre><code>@app.route('/test/&lt;usrn&gt;')
  def test(usrn):
      return render_template('test.html')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/vLPjh.png" rel="nofollow noreferrer">and it looks like this</a></p>
  
  <p>but for this one the css isn't working:</p>
  
  <pre><code>@app.route('/test/&lt;usrn&gt;/&lt;grad&gt;')
  def test(usrn,grad):
      return render_template('test.html')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/LNR2T.png" rel="nofollow noreferrer">and now it looks like this</a></p>
  
  <p>Strucure of <code>test.html</code>:</p>
  
  <pre><code>{% extends 'layout.html' %}
  
  {% block body %}
      &lt;header&gt;
          &lt;div class="container"&gt;
              &lt;div id="logo"&gt;
                  &lt;a href="{{ url_for('index') }}" id="logo"&gt;&lt;img src="../static/images/logo2.png"&gt;&lt;/a&gt;
              &lt;/div&gt;
              &lt;nav&gt;
                  &lt;ul&gt;
                      &lt;li&gt;&lt;a href="{{ url_for('index') }}"&gt;Dashboard&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="{{ url_for('clasament') }}"&gt;Clasament&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="{{ url_for('profil') }}"&gt;Profil ({{ uname }})
                      &lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;button onclick="window.location.href='{{ url_for('logout') }}'" class="input_btn1"&gt;Log out&lt;/button&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/nav&gt;
          &lt;/div&gt;
      &lt;/header&gt;
  {% endblock %}
  </code></pre>
  
  <p>Structure of <code>layout.html</code>:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta name="viewport" content="width=device-width"&gt;
      &lt;link rel="stylesheet" type="text/css" href="../static/css/main.css?q=1280549780"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      {% block body %}{% endblock %}
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Directory structure:</p>
  
  <ul>
  <li>Website
  
  <ul>
  <li>static
  
  <ul>
  <li>css
  
  <ul>
  <li>main.css</li>
  </ul></li>
  <li>images</li>
  <li>img</li>
  </ul></li>
  <li>templates
  
  <ul>
  <li>layout.html</li>
  <li>test.html</li>
  </ul></li>
  <li>mongo_connect.py</li>
  </ul></li>
  </ul>