Skip to content

Commit 11ec794

Browse files
committed
Fixed all broken references
1 parent b522a63 commit 11ec794

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

components/routing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ Usage
2222
-----
2323

2424
The documentation about using this component has been moved to the
25-
main :doc:`Symfony routing` article.
25+
main :doc:`Symfony routing </routing>` article.

reference/forms/types/options/method.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ is used to decide whether to process the form submission in the
1919
When the method is PUT, PATCH, or DELETE, Symfony will automatically
2020
render a ``_method`` hidden field in your form. This is used to "fake"
2121
these HTTP methods, as they're not supported on standard browsers. This can
22-
be useful when using :ref:`method routing requirements <routing-method-requirement>`.
22+
be useful when :ref:`matching routes by HTTP method <routing-matching-http-methods>`.
2323

2424
.. note::
2525

routing.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ configuration defines which action to run for each incoming URL. It also
1010
provides other useful features, like generating SEO-friendly URLs (e.g.
1111
``/read/intro-to-symfony`` instead of ``index.php?article_id=57``).
1212

13+
.. _routing-creating-routes:
14+
1315
Creating Routes
1416
---------------
1517

@@ -110,6 +112,8 @@ The route name (``blog_list``) is not important for now, but it will be essentia
110112
:ref:`generating URLs <routing-generating-urls>`. You only have to keep in mind
111113
that each route name must be unique in the application.
112114

115+
.. _routing-matching-http-methods:
116+
113117
Matching HTTP Methods
114118
~~~~~~~~~~~~~~~~~~~~~
115119

@@ -833,7 +837,7 @@ special parameters created by Symfony:
833837
This parameter is used to determine which controller and action is executed
834838
when the route is matched.
835839

836-
.. _routing-format-param:
840+
.. _routing-format-parameter:
837841

838842
``_format``
839843
The matched value is used to set the "request format" of the ``Request`` object.
@@ -844,6 +848,8 @@ special parameters created by Symfony:
844848
Used to set the fragment identifier, which is the optional last part of a URL that
845849
starts with a ``#`` character and is used to identify a portion of a document.
846850

851+
.. _routing-locale-parameter:
852+
847853
``_locale``
848854
Used to set the :ref:`locale <translation-locale-url>` on the request.
849855

templating/formats.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ but can return any other format based on the format requested by the user.
4848
The request format is most often managed by the routing, where a route can
4949
be configured so that ``/about-us`` sets the request format to ``html`` while
5050
``/about-us.xml`` sets the format to ``xml``. This can be achieved by using the
51-
special ``_format`` placeholder in your route definition::
51+
:ref:`special _format parameter <routing-format-parameter>` in your route definition::
5252

5353
/**
5454
* @Route("/{slug}.{_format}", defaults={"_format"="html"}, requirements={"_format"="html|xml"}))
@@ -67,10 +67,6 @@ format:
6767
View as XML
6868
</a>
6969

70-
.. seealso::
71-
72-
For more information, see this :ref:`Advanced Routing Example <advanced-routing-example>`.
73-
7470
.. tip::
7571

7672
When building APIs, using file name extensions often isn't the best

translation/locale.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ this violates a fundamental rule of the Web: that a particular URL returns
5959
the same resource regardless of the user. To further muddy the problem, which
6060
version of the content would be indexed by search engines?
6161

62-
A better policy is to include the locale in the URL. This is fully-supported
63-
by the routing system using the special ``_locale`` parameter:
62+
A better policy is to include the locale in the URL using the
63+
:ref:`special _locale parameter <routing-locale-parameter>`:
6464

6565
.. configuration-block::
6666

@@ -114,8 +114,8 @@ application.
114114

115115
.. tip::
116116

117-
Read :doc:`/routing/service_container_parameters` to learn how to avoid
118-
hardcoding the ``_locale`` requirement in all your routes.
117+
Define the locale requirement as a :ref:`container parameter <configuration-parameters>`
118+
to avoid hardcoding its value in all your routes.
119119

120120
.. index::
121121
single: Translations; Fallback and default locale

0 commit comments

Comments
 (0)