title: How do you get the current url in Twig?
body: <p>Inside a twig template I will check </p>
  
  <pre><code>if url is: http://example.com/search?keyword=test
  
  {% set pageTitle = query %}  query is test
  
  else
  
  {% set pageTitle = different %}
  </code></pre>
  
  <p>How I can do?</p>
  
  <p>Thank you.</p>