Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#16733 closed defect (bug) (fixed)

[16918] Broke PATHINFO custom taxomony permalinks

Reported by: markjaquith Owned by:
Priority: high Milestone: 3.1.1
Component: Rewrite Rules Version: 3.1
Severity: major Keywords:
Cc: alxndr+wordpress@…

Description (last modified by markjaquith)

[16918] fixed #15813 for built in taxonomies, but broke it for custom taxonomies. It now double-adds the index.php/ prefix to the rewrite rules.

index.php/index.php/type/([^/]+)/?$ => index.php?post_format=$matches[1]

Change History (10)

  • Description modified (diff)

comment:2 follow-ups: ↓ 3 ↓ 5   duck_2 years ago

Looks like patch on #16662 fixes this (along with revert of [16918])

comment:3 in reply to: ↑ 2   duck_2 years ago

Replying to duck_:

Looks like patch on #16662 fixes this (along with revert of [16918])

Unless you change the category base:

'topics/(.+?)/?$' => 'index.php?category_name=$matches[1]',
  • Cc alxndr+wordpress@… added

comment:5 in reply to: ↑ 2   duck_2 years ago

Replying to duck_:

Looks like patch on #16662 fixes this (along with revert of [16918])

Obviously I'm completely failing to notice that this is only papering over the issue that with_front false doesn't work with PATHINFO permalinks (the same is true of custom post types registered with with_front => false).

/me hopes I don't quadruple post

comment:7 follow-up: ↓ 8   dd322 years ago

My research has yielded these results. There's more to it. Regular category permalinks were broken too.

Different Changeset there.. That'll be [15825], Setting with_front => true in the category tax registration should fix that

comment:8 in reply to: ↑ 7   greuben2 years ago

Replying to dd32:

My research has yielded these results. There's more to it. Regular category permalinks were broken too.

Different Changeset there.. That'll be [15825], Setting with_front => true in the category tax registration should fix that

Yes, with_front solves it. I've already attached a patch on ticket:16662:16662.3.diff

  • Resolution set to fixed
  • Status changed from new to closed

Prevent double index.php preprend on PATHINFO custom taxonomy permalinks. Proper use of with_front. props greuben. fixes #16918. fixes #16622. see #15813. see #12659. For trunk

Version 0, edited 2 years ago by markjaquith (next)

Prevent double index.php preprend on PATHINFO custom taxonomy permalinks. Proper use of with_front. props greuben. fixes #16773. fixes #16662. see #15813. see #12659. For 3.1

Last edited 2 years ago by markjaquith (previous) (diff)
Note: See TracTickets for help on using tickets.