[wp-trac] [WordPress Trac] #18734: Subcategory archive does work with any name as parent category in URL
WordPress Trac
noreply at wordpress.org
Tue Feb 3 11:36:43 UTC 2026
#18734: Subcategory archive does work with any name as parent category in URL
-------------------------------------------------+-------------------------
Reporter: ocean90 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
| Release
Component: Canonical | Version: 3.0.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by kasparsd):
Thanks for testing @huzaifaalmesbah!
I've refreshed the patch [https://github.com/WordPress/wordpress-
develop/pull/10854 as a pull request] and tested it locally. Everything
appears to be working correctly -- here is a test setup with `subject` as
category permalink prefix and `top` → `top-child` as hierarchical terms:
{{{
curl -v http://localhost:8889/subject/INVALID/top-child/
* Host localhost:8889 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
* Trying [::1]:8889...
* Established connection to localhost (::1 port 8889) from ::1 port 65036
* using HTTP/1.x
> GET /subject/INVALID/top-child/ HTTP/1.1
> Host: localhost:8889
> User-Agent: curl/8.17.0
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 301 Moved Permanently
< Server: nginx/1.29.4
< Date: Tue, 03 Feb 2026 11:28:57 GMT
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/8.2.29
< X-Redirect-By: WordPress
< Location: http://localhost:8889/subject/top/top-child/
}}}
I also confirmed that post permalinks with `%category%` fragments still
redirect as expected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18734#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list