[wp-trac] [WordPress Trac] #55336: Query strings with reserved characters get wrongly redirected to encoded variant at the root level.
WordPress Trac
noreply at wordpress.org
Tue Mar 8 09:18:23 UTC 2022
#55336: Query strings with reserved characters get wrongly redirected to encoded
variant at the root level.
--------------------------+-----------------------------
Reporter: madstegge | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The asterisk ("*", ASCII 2A hex) and exclamation mark ("!" , ASCII 21 hex)
are reserved for use as having special significance within specific
schemes. Source:
https://www.w3.org/Addressing/URL/4_URI_Recommentations.html
More here: https://developers.google.com/maps/url-encoding
WordPress however, redirects to a URI encoded variant when the query
string at the root level contains these reserved characters.
So, https://wordpress.org/plugins/?test=123*456 doesn't redirect.
While https://wordpress.org/?test=123*456 redirects to
https://wordpress.org/?test=123%2A456.
This is quite problematic for all WordPress sites that use for example
Google Analytics 4 (GA4) cross-domain tracking. GA4 relies on a query
string containing asterisks. Source:
https://support.google.com/analytics/answer/10071811?hl=en
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55336>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list