Make WordPress Core

Opened 3 months ago

#51141 new defect (bug)

URL parameters are altered on static homepage after unneeded 301 redirect

Reported by: kevindeleon Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5
Component: General Keywords:
Focuses: Cc:


It seems as though all WordPress sites that I’m supporting for various clients has this same functionality — if the site is using a static homepage, and you visit the homepage with a query string containing + signs — the page is redirected (301) and the plus signs are turned into %20 — Interior pages and posts do NOT suffer this same effect.

For example (I am not supporting this site, just using it as an example):
https://wpengine.com/?test=test+test (redirect occurs)
https://wpengine.com/plans/?test=test+test (no redirect occurs)

Another example:
https://wordpress.org/support/?test=test+test (redirect occurs)
https://wordpress.org/support/article/overview-of-wordpress/?test=test+test (no redirect)

Our site analyst (SEO, tracking, etc) uses plus signs in his query string data and this can be problematic. It seems that the homepage should not be doing this.

This also does not seem to affect sites that don’t use the “static homepage” option.

Change History (0)

Note: See TracTickets for help on using tickets.