Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2008 at 03:18 UTC
Updated:
14 Jan 2009 at 13:57 UTC
When Drupal paginates comments, the link in the comments block is not properly addressed for those not appearing on the first page. For example, the link for a comment on the first page may look like this:
This works fine, but when linking to a comment located on the second page, the link is identical in form. It should, of course, be:
At first I thought it'd be a fairly simple query to pop in to theme_comment_block, but the threaded state of my comments makes it more challenging. Anyone have a solution to this?
Looking through the API, this issue appears to affect all current versions of Drupal.
Comments
Comment #1
meatbites commentedAny quick suggestions, perhaps, on how one might figure out how to calculate what page a threaded comment appears on? Very much in need of a fix for this.
Comment #2
skiminki commentedThis is something we did on Drupal 5, may work on D6 too:
So, us08_get_comment_ordinal() determines the comment order number, beginning from 0. us08_get_comment_page() determines the page of the comment and finally, us08_comment_url() formats url for the comment. This code was derived from http://api.drupal.org/api/function/comment_render/5
Comment #3
damien tournoud commentedThis looks like a duplicate of #26966: Fix comment links when paging is used..