[wp-trac] [WordPress Trac] #52586: canonical_redirect drops query

WordPress Trac noreply at wordpress.org
Sun Feb 21 22:14:30 UTC 2021


#52586: canonical_redirect drops query
--------------------------+-----------------------------
 Reporter:  tdlewis77     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The if block at line 206 of wp-includes/canonical.php drops the query
 portion of the URL. For example:
 * https://www.mysite.com/members?page=dashboard

 redirects to
 * https://www.mysite.com/members/

 instead of
 * https://www.mysite.com/members/?page=dashboard

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


More information about the wp-trac mailing list