Skip to content

Commit 35e43cd

Browse files
committed
Fixed code exampels in cookbook/routing
1 parent 069791d commit 35e43cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/routing/scheme.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ The above configuration forces the ``secure`` route to always use HTTPS.
5151
When generating the ``secure`` URL, and if the current scheme is HTTP, Symfony
5252
will automatically generate an absolute URL with HTTPS as the scheme:
5353

54-
.. code-block:: text
54+
.. code-block:: twig
5555
56-
# If the current scheme is HTTPS
56+
{# If the current scheme is HTTPS #}
5757
{{ path('secure') }}
5858
# generates /secure
5959
60-
# If the current scheme is HTTP
60+
{# If the current scheme is HTTP #}
6161
{{ path('secure') }}
62-
# generates https://example.com/secure
62+
{# generates https://example.com/secure #}
6363
6464
The requirement is also enforced for incoming requests. If you try to access
6565
the ``/secure`` path with HTTP, you will automatically be redirected to the

0 commit comments

Comments
 (0)