[wp-trac] [WordPress Trac] #61824: Pages no longer allowed to have same permalink as images
WordPress Trac
noreply at wordpress.org
Wed Aug 14 08:43:00 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 | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by thommo):
Hi Peter,
Yes, you're right, adding a new image and creating a new page now works
exactly as you say.
The problem is that the site has been live for a long time. In the
database, the post_name for the media and page in the posts table were
identical. Previously, the site displayed the page when going to the url
(this may be because attachment pages are disabled using the Yoast
plugin?). We had no issues when updating the page (it allowed the
post_name to remain as it was and the page displayed as expected).
However, after applying the latest version of WP, going to the URL gave a
404. And, when we open the page to edit it in the backend, the permalink
has been altered to add "-2" to the end of it. If we update it, it changes
the URL for the page which causes a lot of links to break.
For us, for the two pages affected on this site, we could delete the old
media files as they were no longer used and the pages worked again.
What I don't know is whether Yoast played a part in making the site work
previously and that, if Yoast had not been there, maybe something
different would have happened.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61824#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list