title: How to add active class if current url matches the given (twig)
body: <p>I want to write manually a side menu for the store on opencart, and I have a problem - how to make twig add the class "active" to the link for current page</p>
  
  <p>I tried to do it like this</p>
  
  <pre><code>&lt;a href="/something/" class="list-group-item {{ (app.request.attributes.get('_route') == 'something') ? 'active' }}"&gt;page about something&lt;/a&gt;
  </code></pre>
  
  <p>but it doesnt work</p>