Make WordPress Core

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: amanzi's profile amanzi 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:

  1. Permalinks: /archives/%post_id%

Category base: /archives

  1. 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)

#1 @ryan
19 years ago

This is a known limitation that cannot be fixed.

#2 @amanzi
19 years ago

and that's it?

#3 @davidhouse
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.

Note: See TracTickets for help on using tickets.