Skip to content

Commit a5979b0

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Use `path` instead of `url` in SSI documentation
2 parents 85afde5 + ac13f6e commit a5979b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

http_cache/ssi.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The SSI instructions are done via HTML comments:
2222
<!-- ... some content -->
2323

2424
<!-- Embed the content of another page here -->
25-
<!--#include virtual="http://..." -->
25+
<!--#include virtual="/..." -->
2626

2727
<!-- ... more content -->
2828
</body>
@@ -121,8 +121,8 @@ The profile index page has not public caching, but the GDPR block has
121121
{# you can use a controller reference #}
122122
{{ render_ssi(controller('App\\Controller\\ProfileController::gdpr')) }}
123123
124-
{# ... or a URL #}
125-
{{ render_ssi(url('profile_gdpr')) }}
124+
{# ... or a path (in server's SSI configuration is common to use relative paths instead of absolute URLs) #}
125+
{{ render_ssi(path('profile_gdpr')) }}
126126
127127
The ``render_ssi`` twig helper will generate something like:
128128

0 commit comments

Comments
 (0)