Skip to content

Commit 2505c79

Browse files
author
Henry Snoek
committed
fix for simple table layout
1 parent 16a5ac9 commit 2505c79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,12 @@ redirect between them.
499499
Symfony follows this logic to redirect between URLs with and without trailing
500500
slashes (but only for ``GET`` and ``HEAD`` requests):
501501

502-
---------- ---------------------------------------- ------------------------------------------
502+
========== ======================================== ==========================================
503503
Route path If the requested URL is ``/foo`` If the requested URL is ``/foo/``
504-
---------- ---------------------------------------- ------------------------------------------
504+
========== ======================================== ==========================================
505505
``/foo`` It matches (``200`` status response) It doesn't match (``404`` status response)
506506
``/foo/`` It makes a ``301`` redirect to ``/foo/`` It matches (``200`` status response)
507-
---------- ---------------------------------------- ------------------------------------------
507+
========== ======================================== ==========================================
508508

509509
In summary, adding a trailing slash in the route path is the best way to ensure
510510
that both URLs work. Read the :doc:`/routing/redirect_trailing_slash` article to

0 commit comments

Comments
 (0)