[wp-trac] [WordPress Trac] #49220: rel_canonical generates the wrong canonical structure for paginated pages.

WordPress Trac noreply at wordpress.org
Sat Jan 18 00:33:23 UTC 2020


#49220: rel_canonical generates the wrong canonical structure for paginated pages.
--------------------------+------------------------------
 Reporter:  bradleyt      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Canonical     |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:2 bradleyt]:
 > Any page in a WordPress installation can be accessed at {page
 slug}/page/{number}, despite that pagination structure being intended for
 archives.

 Yes, that issue is being tracked in #28081.

 > In these cases the canonical url is wrong. For example, look at the
 canonical meta tag on these non-wordcamp pages:
 > https://wordpress.org/page/2/
 > https://wordpress.org/showcase/page/2/

 That's still an issue with WordPress.org's implementation of the
 `rel="canonical"` tag.

 By default, `rel_canonical()` does not output the canonical tag on these
 views, only on single posts or pages.

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


More information about the wp-trac mailing list