Skip to content

Commit 8db02f4

Browse files
committed
minor #17061 [Routing] Fix some internal references links (javiereguiluz)
This PR was merged into the 4.4 branch. Discussion ---------- [Routing] Fix some internal references links As you can see in this screenshot: ![](https://user-images.githubusercontent.com/73419/180944403-976be0b2-96e9-4f32-8a36-041771b6b9af.jpg) The list of parameters is rendered as 3 separate lists. This is because references are not supported in the middle of the list of items. So, given that the list is short, I propose to move references to the beginning of the list to fix this. Links will point to that beginning of the list, but readers can quickly see all parameters, so this could be fine. Commits ------- 58bfc1d [Routing] Fix some internal references links
2 parents 59c23cf + 58bfc1d commit 8db02f4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

routing.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,12 +873,13 @@ Special Parameters
873873
In addition to your own parameters, routes can include any of the following
874874
special parameters created by Symfony:
875875

876+
.. _routing-format-parameter:
877+
.. _routing-locale-parameter:
878+
876879
``_controller``
877880
This parameter is used to determine which controller and action is executed
878881
when the route is matched.
879882

880-
.. _routing-format-parameter:
881-
882883
``_format``
883884
The matched value is used to set the "request format" of the ``Request`` object.
884885
This is used for such things as setting the ``Content-Type`` of the response
@@ -888,8 +889,6 @@ special parameters created by Symfony:
888889
Used to set the fragment identifier, which is the optional last part of a URL that
889890
starts with a ``#`` character and is used to identify a portion of a document.
890891

891-
.. _routing-locale-parameter:
892-
893892
``_locale``
894893
Used to set the :ref:`locale <translation-locale-url>` on the request.
895894

0 commit comments

Comments
 (0)