[wp-trac] [WordPress Trac] #17183: previous_comments_link and next_comments_link return wrong url with PATHINFO permalinks

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 19 20:13:16 UTC 2011


#17183: previous_comments_link and next_comments_link return wrong url with
PATHINFO permalinks
--------------------------+-----------------------------
 Reporter:  FireMotion    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  3.1.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When using PATHINFO permalinks, previous_comments_link() and
 next_comments_link() return a wrong link, which renders paged comments
 useless.

 Steps to reproduce:
 Set permalinks to: /index.php/%post_id%/%postname%/

 The functions return URLs similar to: /comments-page-1/#comments
 This URL results in a file not found (if no rewrite rules are available,
 which should not be necessary if the PATHINFO permalink structure is
 used).

 Expected URL: /index.php/comments-page-1/#comments
 Manual opening the URL results in the expected/correct paged comments
 page.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17183>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list