WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7490 closed defect (bug) (fixed)

Category/tag URL changed if the permalink structure has static strings

Reported by: lilyfan Owned by: markjaquith
Milestone: 2.6.1 Priority: high
Severity: normal Version: 2.6
Component: General Keywords: permalink
Focuses: Cc:

Description

The category/tag URL of WordPress 2.6 changed from 2.5.1 if the permalink structure has static string.

(Example)
Permalink structure is "/arc/%year%/%monthnum%/%day%/%postname%/", and WordPress is installed at http://example.com/

Category URL of WP 2.5.1: http://example.com/category/foobar/
Category URL of WP 2.6: http://example.com/arc/category/foobar/ (The static string "arc/" is added at URL)

There is no way to force "http://example.com/category/foobar/" at WordPress 2.6. This is unwanted behavior.
The category/tag URL is needed to keep same as long as the author wants, such as permalinks.

Please keep back the category/tag URL structure to WP 2.5 way.

Attachments (1)

7490_trunk.diff (1.2 KB) - added by markjaquith 6 years ago.
Patch for 2.7 (trunk)

Download all attachments as: .zip

Change History (7)

comment:1 ryan6 years ago

Perhaps related to [8366]. Have you tried 2.6.1 beta 1 to see if it fixes the problem?

comment:2 lilyfan6 years ago

I used 2.6.1 beta 1 and met the problem. I think that "2.6.1 beta 1" has the this problem yet.

comment:3 markjaquith6 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned

Thank you for the report. I can reproduce this issue and am looking into a fix.

markjaquith6 years ago

Patch for 2.7 (trunk)

comment:4 ryan6 years ago

Testing with and without custom category and tag bases. Working well so far.

comment:5 markjaquith6 years ago

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

(In [8616]) Do not prepend /archives/ et al to category/tag URLs unless category/tag slug is missing. fixes #7490 for trunk

comment:6 markjaquith6 years ago

(In [8617]) Do not prepend /archives/ et al to category/tag URLs unless category/tag slug is missing. fixes #7490 for 2.6.1

Note: See TracTickets for help on using tickets.