Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#52214 closed defect (bug) (duplicate)

Slug conflict for page and posts

Reported by: cagdasdag's profile cagdasdag Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Permalinks Keywords:
Focuses: Cc:

Description

When you create a page and post with same title and same slug it won't add -2, -3 to slug it creates a conflict there.

Steps to replicate:

  • Go to Permalink setting and select "Post name", save it.
  • Create a page and set permalink -> test-1212
  • Create a post and set permalink -> test-1212

And go to yourdomain.com/test-1212 you will see it opens page. There is no way to see this post. When you create a post it should add -2 to end of url.

Change History (1)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Permalinks
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #13459.

Note: See TracTickets for help on using tickets.