The results on a search page, such as this page, have links in this format
http://www.cortextcommunications.com/pushbutton/node/view/44#43
While the anchor tag (as generated by the pushbutton, xtemplate (as seen here on Drupal, go find a forum page and read the code) and marvin 2k themes) actually reads:
<a id="comment-43">
So the proper link should be:
http://www.cortextcommunications.com/pushbutton/node/view/44#comment-43
Which is what the tracker generates as well as the statistics module. Only the search module fails to add the comment-
part. I looked through the search.module
and couldn't find the portion that deals with generating the links to the comments. I couldn't find much in the way of cid
either. I was able to find the line easily in the tracker.modile
, but I'm not able to track down where the URLs in the search results are generated. Can someone please point me in the right direction?
Comments
Comment #1
TDobes CreditAttribution: TDobes commentedI've attached a patch which adds "comment-" before the number in search results. It should apply cleanly to both the 4.4 and HEAD branches.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to both the HEAD and the DRUPAL-4-4 branch.
Comment #3
(not verified) CreditAttribution: commented