title: Symfony generate links for twig rendered emails sent with cron tasks
body: <p>I'm having some problems while generating paths in emails rendered with twig on Symfony</p>
  
  <p>Here is what I'm doing </p>
  
  <pre><code>&lt;a href="{{ domain_parameter ~ path('news_homepage') }}"&gt; My Link &lt;/a&gt;
  </code></pre>
  
  <p>And on parameters.yml</p>
  
  <pre><code>domain_parameter: http://mydomain.com
  </code></pre>
  
  <p>On the routing</p>
  
  <pre><code>news_homepage:
      pattern:  /news
      defaults: { _controller: newsBundle:News:index }
  </code></pre>
  
  <p>I then send emails with cron tasked</p>
  
  <p>While doing so I'm expecting to get urls looking like this : </p>
  
  <pre><code>http://mydomain.com/news
  </code></pre>
  
  <p>But i'm getting this :</p>
  
  <pre><code>http://mydomain.com/website.com/web/app.php/news
  </code></pre>
  
  <p>If I use "url" instead of "path", it will result with : </p>
  
  <pre><code>http://localhost/var/www/website.com/web/app.php/news
  </code></pre>
  
  <p>Do you have any idea on how could I get this to work as expected? Thanks you in advance </p>