WordPress.org

Make WordPress Core

Opened 9 months ago

Closed 9 months ago

#52214 closed defect (bug) (duplicate)

Slug conflict for page and posts

Reported by: 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
9 months 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.