@@ -283,11 +283,13 @@ If ``relative`` is enabled, it'll create a path relative to the current path.
283283
284284.. code-block :: twig
285285
286+ {# consider that the app defines an 'app_blog' route with the path '/blog/{page}' #}
287+
286288 {{ path(name = 'app_blog', parameters = {page: 3}, relative = false) }}
287- {# output (depending on the route configuration) : /blog/3 or /blog?page= 3 #}
289+ {# output: /blog/3 #}
288290
289291 {{ path(name = 'app_blog', parameters = {page: 3}, relative = true) }}
290- {# output (depending on the route configuration) : blog/3 or ?page= 3 #}
292+ {# output: blog/3 #}
291293
292294 .. seealso ::
293295
@@ -313,13 +315,13 @@ Returns the absolute URL (with scheme and host) for the given route. If
313315
314316.. code-block :: twig
315317
318+ {# consider that the app defines an 'app_blog' route with the path '/blog/{page}' #}
319+
316320 {{ url(name = 'app_blog', parameters = {page: 3}, schemeRelative = false) }}
317- {# output (depending on the route configuration): http://example.org/blog/3
318- or http://example.org/blog?page=3 #}
321+ {# output: http://example.org/blog/3 #}
319322
320323 {{ url(name = 'app_blog', parameters = {page: 3}, schemeRelative = true) }}
321- {# output (depending on the route configuration): //example.org/blog/3
322- or //example.org/blog?page=3 #}
324+ {# output: //example.org/blog/3 #}
323325
324326 .. seealso ::
325327
@@ -784,7 +786,7 @@ The above example will be rendered as:
784786
785787.. code-block :: html
786788
787- <abbr title =" App\Controller\ProductController" >ProductController</abbr >
789+ <abbr title =" App\Controller\ProductController" >ProductController</abbr >::list()
788790
789791format_args
790792~~~~~~~~~~~
0 commit comments