Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#7185 closed defect (bug) (fixed)

Trailing backslash shows first category

Reported by: scribu Owned by:
Milestone: 2.7 Priority: low
Severity: normal Version: 2.6
Component: Canonical Keywords: category_base
Focuses: Cc:


When using a permalink structure that begins with '/%category%/', adding a trailing backslash to the blog url shows the category page with the lowest id. Examples:

http://www.example.com\ shows http://www.example.com/category/category-slug

It doesn't matter if the permalinks use a trailing slash or not.

Change History (13)

comment:1 scribu6 years ago

In fact, this happens with all illegal characters.

More examples of strings:

comment:2 scribu6 years ago

  • Owner robmiller deleted

comment:3 scribu6 years ago

  • Keywords category base added
  • Milestone changed from 2.5.2 to 2.6
  • Priority changed from normal to high

comment:4 scribu6 years ago

  • Priority changed from high to normal

comment:5 scribu6 years ago

  • Milestone changed from 2.9 to 2.7
  • Version changed from 2.5.1 to 2.6

comment:6 scribu6 years ago

  • Owner set to anonymous

comment:7 scribu6 years ago

  • Keywords category_base added; category base removed
  • Priority changed from normal to low

comment:8 markjaquith6 years ago

  • Milestone changed from 2.7 to 2.9

Punting pending a workable solution and patch.

comment:9 scribu5 years ago

  • Cc scribu@… added

comment:10 scribu5 years ago

  • Component changed from General to Canonical
  • Keywords permalinks removed
  • Milestone 2.9 deleted
  • Resolution set to fixed
  • Status changed from new to closed

comment:11 DD325 years ago

So this has been fixed over the generations? (Blank Milestone, yet closed as fixed)

comment:12 scribu5 years ago

Yes, probably in 2.7: now it simply returns a 404.

comment:13 DD325 years ago

  • Milestone set to 2.7

Alright, I'm just going to call it a 2.7 fix then.

Note: See TracTickets for help on using tickets.