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

WordPress Trac noreply at wordpress.org
Thu Jun 16 13:55:21 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        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 - Setup a site with a static front page and a posts page (let's call it
 "Posts").
 - Take note of the page_id of the posts page. 265 in my case.
 - Make sure to use pretty permalinks.
 - Create sufficient posts to be able to display the page 2 of the posts
 page.
 - In the address bar, type `https://mysite.com/?page_id=265` (the posts
 page plain permalink) => The site is correctly redirected to
 `https://mysite.com/posts/`
 - In the address bar, type `https://mysite.com/?paged=2&page_id=265` (the
 paged posts page plain permalink) => The site is wrongly redirected to
 `https://mysite.com/page/2/` and displays an empty content. I would expect
 the url to be redirected to `https://mysite.com/posts/page/2/`

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


More information about the wp-trac mailing list