Skip to content

Commit 703abe3

Browse files
committed
minor #5896 [Book][Templating] Update absolute URL asset to match 2.7 (lemoinem)
This PR was merged into the 2.7 branch. Discussion ---------- [Book][Templating] Update absolute URL asset to match 2.7 | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.7+ | Fixed tickets | N/A As mentionned in http://symfony.com/blog/new-in-symfony-2-7-the-new-asset-component, the Right Way:tm: to generate absolute url assets is now through `absolute_url(assset(...))`... Commits ------- 44c8630 [Book][Templating] Update absolute URL asset to match 2.7
2 parents 0e8b14e + 44c8630 commit 703abe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/templating.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ if you are using Twig (or the third argument if you are using PHP) to ``true``:
10981098

10991099
.. code-block:: html+jinja
11001100

1101-
<img src="{{ asset('images/logo.png', absolute=true) }}" alt="Symfony!" />
1101+
<img src="{{ absolute_url(asset('images/logo.png')) }}" alt="Symfony!" />
11021102

11031103
.. code-block:: html+php
11041104

0 commit comments

Comments
 (0)