From 30a2793fa17b4f3d45a46c06ea5a4b46cabc0933 Mon Sep 17 00:00:00 2001 From: zephyr-thomas Date: Tue, 18 Jul 2017 14:42:20 +0200 Subject: [PATCH] Change twig function path() to url(). url() (not path()) generates absolute URL. --- routing/scheme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/scheme.rst b/routing/scheme.rst index f611a414176..405abd91075 100644 --- a/routing/scheme.rst +++ b/routing/scheme.rst @@ -57,7 +57,7 @@ will automatically generate an absolute URL with HTTPS as the scheme: {# generates /secure #} {# If the current scheme is HTTP #} - {{ path('secure') }} + {{ url('secure') }} {# generates https://example.com/secure #} The requirement is also enforced for incoming requests. If you try to access