Open gesinn-it-gea opened 1 year ago
There is also {{PAGENAMEE}} btw.
What about {{urlencode:Test String|WIKI}}?
The following commit introduced this breaking change. Before, it was working with default {{urlencode}}.
$queryString = str_replace( '+', '%2B', $queryString ); // prevent decoding + to space character
This change is related to #autoedit
Modifying a list of values
7) {{urlencode:Test String|PATH}} → Test String
8) {{urlencode:Test_String|PATH}} → Test_String
9) {{urlencode:Test String&ersand|PATH}} → Test String&ersand
10) {{urlencode:Test String+plus|PATH}} → Test String+plus
Using option PATH
seems to work. This option is not MW default and requires users to modify existing query strings.
Conclusion: this was a breaking change not marked as such.
A comparison between the different encodings can be found here: https://www.mediawiki.org/wiki/Manual:PAGENAMEE_encoding#Encodings_compared
The Page Forms extension page on mediawiki.org gives the following advice:
Following the above advice using
query string=Template[Field]={{urlencode:Test String}}
leads toTest+String
being displayed in the form field.Summary: MW 1.35.8 PF 5.5.1
1) {{urlencode:Test String}} → Test+String 2) {{urlencode:Test_String}} → Test_String 3) {{urlencode:Test String&ersand}} → Test+String&ersand 4) Test String → Test String 5) Test_String → Test_String 6) Test String&ersand → Test String
This leaves the user with no working combination for all cases.