[wp-trac] [WordPress Trac] #4328: Redirect Old Slugs feature needs to redirect slugs for pages, not just posts, and redirect old permalink structure
WordPress Trac
noreply at wordpress.org
Wed May 13 11:46:00 UTC 2026
#4328: Redirect Old Slugs feature needs to redirect slugs for pages, not just
posts, and redirect old permalink structure
-------------------------------------------------+-------------------------
Reporter: Denis-de-Bernardy | Owner:
| SergeyBiryukov
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Canonical | Version: 2.2
Severity: normal | Resolution:
Keywords: needs-unit-tests needs-patch early | Focuses:
has-test-info |
-------------------------------------------------+-------------------------
Changes (by sukhendu2002):
* keywords: needs-unit-tests needs-patch early => needs-unit-tests needs-
patch early has-test-info
Comment:
== Reproduction Report
=== Description
Testing whether visiting an old page slug after a slug change results in a
404,
as originally reported.
=== Environment
- WordPress: 7.1-alpha-62161-src
- PHP: 8.3.31
- Server: nginx/1.29.8
- Database: mysqli (Server: 8.4.9 / Client: mysqlnd 8.3.31)
- Browser: Chrome 147.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.5
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Steps to Reproduce
1. Navigate to Pages → Add New, create a page with slug `test-page-
original`, and publish it.
2. Visit the page URL (e.g. `https://example.com/test-page-original/`).
3. Edit the page and change its slug to `test-page-renamed`. Update/save.
4. Navigate to the old URL `https://example.com/test-page-original/`.
=== Actual Results
1. ❌ Error condition does not occur (cannot reproduce). Visiting
`https://example.com/test-page-original/` correctly issues a 301 redirect
to `https://example.com/test-page-renamed/`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4328#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list