Opened 8 months ago
Closed 8 months ago
#63508 closed defect (bug) (duplicate)
Numeric Slugs break on Child Pages
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | major | Version: | |
| Component: | Permalinks | Keywords: | needs-patch good-first-bug needs-test-info |
| Focuses: | Cc: |
Description
Bug Report
Description
When creating a numeric slug as a child page, system ads a -2
For example if you want to have something like /exhibitions/2025 it will switch to /exhibitions/2025-2
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.28
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 137.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty 2.9
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Reproduction Instructions
- Switch to postname Permalinks (Settings > Permalinks)
- Create a Parent page
- Create a Page with a number and set the Parent page as Parent
- 🐞 Check the slug, not respected, ads a
-2(check screenshot attached)
Expected Results
- ✅ URL should be like
/parent/2025/
Actual Results
- ❌ URL is
/parent/2025-2/
Supplemental Artifacts
Demo Screenshot
Change History (2)
Note: See
TracTickets for help on using
tickets.

This is an intentional "feature", as
/pagename/2refers to page 2 of the content ofpagename.Duplicate of #46172, #14238, and #5305.
Per https://core.trac.wordpress.org/ticket/46172#comment:3