Redirect Loop if url parameter has multiple spaces
-
Hey AMP-WP Devs,
I have noticed that the AMP plugin causes a redirect loop if the url has more than one spaces as ” ” or “%20” or “+” or “_”.
We have only noticed the issue this morning as WordPress was updated to the latest version.
You can test this by adding the following to a url:
“/?test=test this out as it breaks your site”
or https://example.com/?test=test%20this%20out%20as%20it%20breaks%20your%20site
As soon as I disable the amp plugin the issue goes away, first we thought it’s the template, but the issue can be re created with twentytwentyone etc. No other plugins were on the site and the issue still exists.
Can you please take a look? If this is an issue with the amp plugin, can you roll out a patch? It broke some of my clients websites we use on google ads as we use UTM’s as well as other URL parameters for tracking.
PS.; I only tested this on multiple different nginx servers and I have not tested it on Apache.
Update: Tested on Multisite and Single instance and no difference
Let me know if I can help with anything
Thank you
The topic ‘Redirect Loop if url parameter has multiple spaces’ is closed to new replies.