Skip to content

Commit 2cce713

Browse files
committed
minor #21157 [Form] Change UrlType default protocol (alamirault)
This PR was merged into the 8.0 branch. Discussion ---------- [Form] Change `UrlType` default protocol Fix #21146 Commits ------- 9a1af3d [Form] Change UrlType default protocol
2 parents bee1f8c + 9a1af3d commit 2cce713

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

reference/forms/types/url.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Field Options
2323
``default_protocol``
2424
~~~~~~~~~~~~~~~~~~~~
2525

26-
**type**: ``string`` **default**: ``http``
26+
**type**: ``string`` **default**: ``null``
2727

2828
Set this value to ``null`` to render the field using a ``<input type="url"/>``,
2929
allowing the browser to perform local validation before submission.
@@ -36,11 +36,6 @@ If a value is submitted that doesn't begin with some protocol (e.g. ``http://``,
3636
``ftp://``, etc), this protocol will be prepended to the string when
3737
the data is submitted to the form.
3838

39-
.. deprecated:: 7.1
40-
41-
Not setting the ``default_protocol`` option is deprecated since Symfony 7.1
42-
and will default to ``null`` in Symfony 8.0.
43-
4439
Overridden Options
4540
------------------
4641

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy