title: Silex and Twig: global.request.baseUrl is empty
body: <p>My URL is looking like this:</p>
  
  <blockquote>
    <p>www.MyWebsite.nl/Escape/public/user</p>
  </blockquote>
  
  <p>So in my twig template, I should be able to use the following line for an image:</p>
  
  <pre><code>&lt;img src='{{ global.request.baseUrl }}/img/EscapeRoom.png' class="slide"&gt;
  </code></pre>
  
  <p>But for some reason that does not work... the baseUrl should contain:</p>
  
  <blockquote>
    <p>/Escape/public</p>
  </blockquote>
  
  <p>But it is empty, can anyone tell me why and how to fix it?</p>
  
  <h2>EDIT</h2>
  
  <p>When I go to the following page:</p>
  
  <blockquote>
    <p>www.MyWebsite.nl/Escape/public/user/login</p>
  </blockquote>
  
  <p>Css, images etc. don't work anymore, since the path isn't correct anymore (two words after 'public'). Do you know how that problem can be solved?</p>