Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5318 closed defect (bug) (fixed)

'Next page' link broken when using slug that contains the word 'page'

Reported by: Eminence Owned by:
Milestone: 2.5 Priority: normal
Severity: major Version: 2.3.1
Component: General Keywords:
Focuses: Cc:


The 'Next page' and 'Previous page' links are broken when you're are browsing posts in a category that has 'page' in it's slug. For example:

You are at: http://yourblog.com/index.php/category/frontpage/page/2/

The previous page link incorrectly points to: http://yourblog/index.php/category/front

The next page link incorrectly points to: http://yourblog/index.php/category/front/page/3/

(the correct links should be /index.php/category/frontpage/ and /index.php/category/frontpage/page/3/)

Attachments (1)

5318.diff (479 bytes) - added by xknown 8 years ago.

Download all attachments as: .zip

Change History (4)

@xknown8 years ago

comment:1 @xknown8 years ago

The attached patch against trunk seems to fix the problem.

comment:2 @ryan8 years ago

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

(In [6415]) Fix previous/next links for slugs containing 'page'. Props xknown. fixes #5318

comment:3 @santosj8 years ago

  • Milestone changed from 2.5 to 2.4

Assumed Fixed on trunk.

Note: See TracTickets for help on using tickets.