Opened 19 years ago
Closed 19 years ago
#2003 closed defect (bug) (wontfix)
Permalinks fail when using the same permalinks and category base
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
If you set the category base the same as the permalinks, when clicking on a single post, all posts are displayed.
If that doesn't make sense try these two setups and test:
- Permalinks: /archives/%post_id%
Category base: /archives
- Permalinks: /tags/%category%/%postname%/
Category base: /tags
With either of the above set up, clicking on a single post displays all posts - as if you were on the index.php page.
Change History (3)
#3
@
19 years ago
- Resolution set to wontfix
- Status changed from new to closed
Think about it:
/archives/%postname% is your permastruct, and /archives your category base. That means permalink URLs will be something like /archives/my-wonderful-post, and category requests something like /archives/my-wonderful-category. How is WordPress meant to distinguish between them? We could possibly check the slug against both posts and categories, but what if you had a post the same name as a category?
Solution: don't let your permalinks clash like this.
This is a known limitation that cannot be fixed.