Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#21501 closed defect (bug) (duplicate)

page and attachment URL might conflict

Reported by: LukasLt Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Permalinks Keywords:
Focuses: Cc:


Creating a page and attaching an image with exact same file name would create 2 different resources, that are expected to be available at the exact same URL (using url rewriting).

This leads attachment page being opened instead of the expected page (the attachment is uploaded later thus fetched prior the page)

Create a page called Test. It would be published as site.com/test

upload featured image Test.jpg. The featured image attachment page would get a permalink of site.com/test

Expected result:
The attachment permalink has copy number appended like site.com/test-2

Change History (1)

#1 @SergeyBiryukov
9 years ago

  • Component changed from General to Permalinks
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.