[wp-trac] [WordPress Trac] #61824: Pages no longer allowed to have same permalink as images

WordPress Trac noreply at wordpress.org
Mon Aug 5 16:04:51 UTC 2024


#61824: Pages no longer allowed to have same permalink as images
--------------------------+-----------------------------
 Reporter:  thommo        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  6.6.1
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 In an existing website, if I have an image called sausages and I also
 already have a page called sausages, I get a 404 when attempting to visit
 the page. In addition, when looking at the page in the backend, it says
 the permalink will become sausages-2 when it is updated. I don't know but
 I wonder whether this is caused by both rows in wp_posts having a
 post_name of sausages. Previously this has not been an issue as the actual
 URL for the image would have wp-content/uploads/2024/08 (or similar added
 to it). Deleting the image results in the page working again (without the
 "-2").

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


More information about the wp-trac mailing list