Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d657abd

Browse filesBrowse files
Alexis Lefebvrewouterj
Alexis Lefebvre
authored andcommitted
Routing: add explanation for the "_fragment" parameter
1 parent 299d3b4 commit d657abd
Copy full SHA for d657abd

File tree

Expand file treeCollapse file tree

1 file changed

+9
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-1
lines changed

‎routing.rst

Copy file name to clipboardExpand all lines: routing.rst
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ Special Routing Parameters
465465
~~~~~~~~~~~~~~~~~~~~~~~~~~
466466

467467
As you've seen, each routing parameter or default value is eventually available
468-
as an argument in the controller method. Additionally, there are three parameters
468+
as an argument in the controller method. Additionally, there are four parameters
469469
that are special: each adds a unique piece of functionality inside your application:
470470

471471
``_controller``
@@ -475,6 +475,14 @@ that are special: each adds a unique piece of functionality inside your applicat
475475
``_format``
476476
Used to set the request format (:ref:`read more <routing-format-param>`).
477477

478+
``_fragment``
479+
480+
.. versionadded:: 3.2
481+
The ``_fragment`` parameter was introduced in Symfony 3.2.
482+
483+
Used to set the fragment identifier, the optional last part of a URL that
484+
starts with a ``#`` character and is used to identify a portion of a document.
485+
478486
``_locale``
479487
Used to set the locale on the request (:ref:`read more <translation-locale-url>`).
480488

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.