File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,15 +51,15 @@ The above configuration forces the ``secure`` route to always use HTTPS.
51
51
When generating the ``secure `` URL, and if the current scheme is HTTP, Symfony
52
52
will automatically generate an absolute URL with HTTPS as the scheme:
53
53
54
- .. code-block :: text
54
+ .. code-block :: twig
55
55
56
- # If the current scheme is HTTPS
56
+ { # If the current scheme is HTTPS #}
57
57
{{ path('secure') }}
58
58
# generates /secure
59
59
60
- # If the current scheme is HTTP
60
+ { # If the current scheme is HTTP #}
61
61
{{ path('secure') }}
62
- # generates https://example.com/secure
62
+ { # generates https://example.com/secure #}
63
63
64
64
The requirement is also enforced for incoming requests. If you try to access
65
65
the ``/secure `` path with HTTP, you will automatically be redirected to the
You can’t perform that action at this time.
0 commit comments