Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 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 11 years ago.

Download all attachments as: .zip

Change History (4)

11 years ago

#1 @xknown
11 years ago

The attached patch against trunk seems to fix the problem.

#2 @ryan
10 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

#3 @santosj
10 years ago

  • Milestone changed from 2.5 to 2.4

Assumed Fixed on trunk.

Note: See TracTickets for help on using tickets.