From 2505c79765c742d1dc415b2efdcf801b88552423 Mon Sep 17 00:00:00 2001 From: Henry Snoek Date: Wed, 14 Mar 2018 18:40:34 +0100 Subject: [PATCH] fix for simple table layout --- routing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routing.rst b/routing.rst index 80b8b278324..7ad7ebfe0e4 100644 --- a/routing.rst +++ b/routing.rst @@ -499,12 +499,12 @@ redirect between them. Symfony follows this logic to redirect between URLs with and without trailing slashes (but only for ``GET`` and ``HEAD`` requests): ----------- ---------------------------------------- ------------------------------------------ +========== ======================================== ========================================== Route path If the requested URL is ``/foo`` If the requested URL is ``/foo/`` ----------- ---------------------------------------- ------------------------------------------ +========== ======================================== ========================================== ``/foo`` It matches (``200`` status response) It doesn't match (``404`` status response) ``/foo/`` It makes a ``301`` redirect to ``/foo/`` It matches (``200`` status response) ----------- ---------------------------------------- ------------------------------------------ +========== ======================================== ========================================== In summary, adding a trailing slash in the route path is the best way to ensure that both URLs work. Read the :doc:`/routing/redirect_trailing_slash` article to