Ticket #7490 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 3 years ago

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

Reported by: lilyfan Owned by: markjaquith
Priority: high Milestone: 2.6.1
Component: General Version: 2.6
Severity: normal Keywords: permalink
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

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

Change History

comment:1   ryan4 years ago

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

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

  • 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.

Patch for 2.7 (trunk)

comment:4   ryan3 years ago

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

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

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

(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.