redirect_canonical produces invalid redirects when post ID is specified
|Reported by:||solarissmoke||Owned by:||nacin|
With pretty permalinks disabled, visit the following url:
Assuming a post with that ID exists, this is valid and shouldn't be redirected anywhere. But it is redirected to:
Note the encoded ampersand in the URL.
Same happens with http://example.com/?page_id=2&feed=rss2. But it doesn't happen if you don't supply a post ID (e.g., with http://example.com/?name=hello-world&feed=rss2 or http://example.com/?year=2012&feed=rss2).
This was introduced in WP 3.4 from what I can tell (it doesn't happen in 3.3).
Change History (9)
comment:2 @SergeyBiryukov — 3 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.5