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 5e8d015

Browse filesBrowse files
committed
feature #6783 Routing: add explanation for the "_fragment" parameter (alexislefebvre)
This PR was squashed before being merged into the master branch (closes #6783). Discussion ---------- Routing: add explanation for the "_fragment" parameter Add explanation about this PR: symfony/symfony#12979 Presented in http://symfony.com/blog/new-in-symfony-3-2-routing-improvements I copy-pasted the start of the announcement as the explanation since I couldn't have found a better explanation. I hope that won't be a problem. Commits ------- d657abd Routing: add explanation for the "_fragment" parameter
2 parents 463f9db + d657abd commit 5e8d015
Copy full SHA for 5e8d015

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
@@ -470,7 +470,7 @@ Special Routing Parameters
470470
~~~~~~~~~~~~~~~~~~~~~~~~~~
471471

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

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

483+
``_fragment``
484+
485+
.. versionadded:: 3.2
486+
The ``_fragment`` parameter was introduced in Symfony 3.2.
487+
488+
Used to set the fragment identifier, the optional last part of a URL that
489+
starts with a ``#`` character and is used to identify a portion of a document.
490+
483491
``_locale``
484492
Used to set the locale on the request (:ref:`read more <translation-locale-url>`).
485493

0 commit comments

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