The document said
{# src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig #} {% for article in articles %}
url Twig function generates absolute path path Twig function generates / related url
Example we have http://sf2sandbox.local with AcmeDemoBundle
{{ path('_welcome') }} produce / {{ url('_welcome') }} produce http://sf2sandbox.local/