[wp-trac] [WordPress Trac] #55993: Wrong canonical redirect for paged posts page

WordPress Trac noreply at wordpress.org
Fri Nov 4 14:07:53 UTC 2022


#55993: Wrong canonical redirect for paged posts page
-------------------------------+------------------------------
 Reporter:  Chouby             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Canonical          |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by Chouby):

 @afercia Yes I confirm that the bug still exists. I just re-tested with
 the development version (6.2-alpha-54748) and Twenty Twenty One.

 I took the opportunity to debug a bit.
 At [https://github.com/WordPress/wordpress-develop/blob/6.1.0/src/wp-
 includes/canonical.php#L493 this line], `$addl_path` is filled with the
 pagination base and number. Previously, it's an empty string. Then the
 redirect path is filled [https://github.com/WordPress/wordpress-
 develop/blob/6.1.0/src/wp-includes/canonical.php#L525 here].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55993#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list