Skip to content

Commit 29701f1

Browse files
committed
minor #9439 routing example, simple table layout fix (snoek09)
This PR was merged into the 2.7 branch. Discussion ---------- routing example, simple table layout fix Bumped into this layout bug while reading the docs. I think this was supposed to be a table. Commits ------- 2505c79 fix for simple table layout
2 parents 76b1ad6 + 2505c79 commit 29701f1

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)