[wp-trac] [WordPress Trac] #57724: redirect_canonical() may not work if site_url contains port number

WordPress Trac noreply at wordpress.org
Wed Feb 15 07:34:59 UTC 2023


#57724: redirect_canonical() may not work if site_url contains port number
--------------------------+-----------------------------
 Reporter:  obache        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Canonical     |    Version:  6.1.1
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 If site_url contains port number (for example, local test with
 http://localhost:8001/),
 `redirect_canonical()` may not work as expected because port number is
 ignored when
 constructing `$redirect_url`.

 For example, "http://localhost:8001/category/name?paged=2" will not be
 redirect to
 "http://localhost:8001/category/name/page/2".

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


More information about the wp-trac mailing list