title: How to use absolute path in twig functions
body: <p>I have an application with Symfony2 (2.2). When I want to send a mail, I'm having trouble with the paths, which are all relative paths and obviously aren't working inside emails</p>
  <p>for rendering the paths I'm using:</p>
  <pre><code>&lt;a href=&quot;{{ path('route_name', {'param' : value}) }}&quot;&gt;A link&lt;/a&gt;
  </code></pre>
  <p>and for assets:</p>
  <pre><code>&lt;img src=&quot;{{ asset('bundle/myname/img/image.gif') }}&quot; alt=&quot;Title&quot;/&gt;
  </code></pre>
  <p>The previous examples work fine but the paths are relative therefore I need to append the domain. I can do something like:</p>
  <pre><code>&lt;a href=&quot;http://example.com{{ path('route_name', {'param' =&gt; param1}) }}&quot;&gt;A link&lt;/a&gt;
  </code></pre>
  <p>but this is not the best solution for my problem, as I have different domains.</p>
  <p>I found the solution for paths with the <code>url</code> function but I still need a solution for assets.</p>