[wp-trac] [WordPress Trac] #60721: redirect_canonical suddenly causes issues with paramter values and CDN

WordPress Trac noreply at wordpress.org
Thu Mar 7 07:31:07 UTC 2024


#60721: redirect_canonical suddenly causes issues with paramter values and CDN
--------------------------+-----------------------------
 Reporter:  retrovertigo  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:  6.4.3
 Severity:  minor         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi there,

 I was just wondering if anything has changed regarding
 https://developer.wordpress.org/reference/functions/redirect_canonical/?

 `https://some-domain.tld/?my_param=a+a`

 triggers a 301 redirect to
 `https://some-domain.tld/?my_param=a a`

 Now our CDN is set to pass URLs with `my_param` straight on to WordPress.
 Since that response with a 301, that's what gets cached by the CDN and
 causes a redirect loop.

 Is that something new? I hadn't had that issue before, but also not 100%
 sure if I sent a value like "a+a" before. Trying to figure out why this
 redirect loop happens now after years.

 I'll leave that ticket to be a bug, but if nothing has changed in
 redirect_canonical() then I guess it can just be closed.

 Thanks for your help.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60721>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list