diff --git a/book/routing.rst b/book/routing.rst index 7d9d5459ac6..86cd10b3416 100644 --- a/book/routing.rst +++ b/book/routing.rst @@ -1550,6 +1550,18 @@ a template helper function: Read this blog post. +.. tip:: + + If you are generating the route inside a script tag, you might need to properly escape it for Javascript + + .. code-block:: javascript + + + + For more information, see the Twig documentation. + .. index:: single: Routing; Absolute URLs