Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#8398 closed defect (bug) (worksforme)

Comment Pagination Bug

Reported by: alenonimo Owned by:
Milestone: Priority: high
Severity: major Version:
Component: Comments Keywords: needs-testing
Focuses: Cc:


I was browsing my posts and found this bug.

When you have enough comments for pagination, the links for the other pages are created by adding "comment-page-2#comments" at the end of the page URL.

The problem occurs when your permalinks doesn't have the trailing slash "/" at the end.


If a page URL is

The pagination create links like

The correct would be

Change History (5)

#1 @dberebi
10 years ago

  • Keywords needs-testing added

Working with xampp on windows and WP-2.7-beta3-9909 I have no problem at all, my permalink is /%year%/%monthnum%/%day%/%postname%, only the correct urls generated

#2 @ryan
9 years ago

  • Milestone 2.7 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Working here too, and get_comment_link() looks correct. Re-open if this is still a problem with the latest 2.7 nightly.

#3 @Malaiac
9 years ago

  • Resolution worksforme deleted
  • Status changed from closed to reopened

similar bug here.

Create a page. Set this page as home. Load home. Add a comment. Ouch ! 'http://mysite.com/comment-page-1#comment-7' = 'Page not found'

Everything else works fine, and everything works fine when comment pagination is off.

#4 @Malaiac
9 years ago

edit : in the same situation, comment pagination does work for other posts/pages. But I think it's the same issue between URL with no trailing slash and home (an URL with no path but the trailing slash)

#5 @DD32
9 years ago

  • Resolution set to worksforme
  • Status changed from reopened to closed

Malaiac: It has nothing to do with the trailing slash, Its all to do with the fact that WordPress doesnt currently treat the homepage as a Post/Page page.

I created a new ticket to deal with it to prevent confusion with the description of this ticket: #8598 (When a Static page is set as the front page, Comment paging doesnt work.)

Note: See TracTickets for help on using tickets.