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?

CommentFileSizeAuthor
#1 drupal_71.14 KBTDobes
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TDobes’s picture

Assigned: Unassigned » TDobes
FileSize
1.14 KB

I'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.

Dries’s picture

Committed to both the HEAD and the DRUPAL-4-4 branch.

Anonymous’s picture