Opened 15 years ago
Closed 15 years ago
#12601 closed defect (bug) (fixed)
Post_type + non-existant object + Canonical
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Canonical | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
Hit a page such as this: http://localhost/wordpress-commit/wiki/something and the canonical system kicks in and attempts a redirect to http://localhost/wordpress-commit/2010/02/13/something-i-want-to-keep-quiet/
The canonical system should reconise when a object being queried is a post_type and not redirect to a similar slug.
The same redirection will take place for the url http://localhost/wordpress-commit/apage/something - Once again, redirection from page -> post.
Attachments (2)
Change History (8)
#1
@
15 years ago
- Keywords has-patch needs-testing added
- Limits to searching for posts in the same post_type if a post_type was specified in the original rewrite rule.
- Does not apply to the Page -> Post redirection, Only to Custom Post Type -> Other Post type redirection
#4
@
15 years ago
attachment 12601.2.diff added
- Needs Testing.
- If a request is for a Post (ie. /2008/12/somethi), then the 404 search will only look for posts with 'somethi%'
- If a request if for a Page (ie. /somethi), then the 404 search will look at both pages AND posts
Its a step forward IMO, but still doesnt prevent page -> post redirects. It nearly seems like leaving that functionality present would be best, while avoiding the obviously incorrect redirects from post permalinks to pages.