Skip to content

Commit 7f73b1d

Browse files
committed
minor #16513 [Cache] Use path instead of url in SSI documentation (tucksaun)
This PR was merged into the 4.4 branch. Discussion ---------- [Cache] Use `path` instead of `url` in SSI documentation By using `url` SSI tags will include the host which is likely to not work as, unlike ESI, SSI is meant to be used at the webserver level which most of the time only handles SSI as paths. Commits ------- 76013ca Use `path` instead of `url` in SSI documentation
2 parents adb6dce + 76013ca commit 7f73b1d

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>
@@ -117,8 +117,8 @@ The profile index page has not public caching, but the GDPR block has
117117
{# you can use a controller reference #}
118118
{{ render_ssi(controller('App\\Controller\\ProfileController::gdpr')) }}
119119
120-
{# ... or a URL #}
121-
{{ render_ssi(url('profile_gdpr')) }}
120+
{# ... or a path #}
121+
{{ render_ssi(path('profile_gdpr')) }}
122122
123123
The ``render_ssi`` twig helper will generate something like:
124124

0 commit comments

Comments
 (0)