[wp-trac] [WordPress Trac] #51141: URL parameters are altered on static homepage after unneeded 301 redirect

WordPress Trac noreply at wordpress.org
Tue Jan 26 06:30:38 UTC 2021


#51141: URL parameters are altered on static homepage after unneeded 301 redirect
--------------------------+------------------------------
 Reporter:  kevindeleon   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.5
 Severity:  normal        |  Resolution:  worksforme
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by bosconiandynamics):

 I can confirm observing the behavior in the provided links as described,
 with 301 redirects to the homepages with the `+` character in the
 querystring value replaced with it's URL-encoded equivalent, `%20`.

 I was additionally able to reproduce the behavior locally on trunk
 revision 50021 running on Apache with a host-file mapped domain. Setting
 the static homepage to the "Sample Page" and visiting the homepage with a
 `?test=test+test` querystring was sufficient. The behavior occured over
 HTTP and HTTPS, as well as regardless of being logged in or not.

 I could not reproduce the behavior using `@wordpress/env` 3.0.0 with the
 same trunk revision using the default `localhost:8888` URL mapping. I also
 did not witness the behavior after assigning a host-file mapped domain to
 the site and adjusting it's WP_HOME and WP_SITEURL constants appropriately
 (but still including the port in the host).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51141#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list