title: How to check app.request.attributes.get('_route')==blog/slug variables
body: <p>For eg if my url is<br>
  <a href="http://localhost/project/blog" rel="nofollow">http://localhost/project/blog</a>
  We can check current url with routes by </p>
  
  <pre><code> {% if app.request.attributes.get('_route') == 'blog' %}
  &lt;/p&gt;this is default page&lt;/p&gt;
      {%endif%}
  </code></pre>
  
  <p>BUt  for below url:<br>
  <a href="http://localhost/project/blog/2" rel="nofollow">http://localhost/project/blog/2</a><br>
  this is not working </p>
  
  <pre><code>{% if app.request.attributes.get('_route') == 'blog/2' %}
  &lt;/p&gt;this is blog page 2&lt;/p&gt;
  {%endif%}
  </code></pre>