Re-writing View Comment link to display node title I'm trying to re-write the [view_comment] field in a Comments View with the [title]. I have the [title] excluded and I'm re-writing [view_comment] with [title].

What I'm hoping is to show the node title in the view and it will link to the latest comment on the node. I think I need to 'output the [view_comment] field as a link' possibly with node/???? (or similar) as the absolute link.

Can anyone point me in the right direction?
If you are using Drupal 7 you can take advantage of core's new API to create permalinks to comments.

From the patch on d.o


  Since comments are paged there is no way to guarantee which page a
  comment appears on. Comment paging and threading settings may be
  changed at any time. With threaded comments, an individual comment may
  move between pages as comments can be added either before or after it
  in the overall discussion. Therefore we use a central routing function
  for comment links, which calculates the page number based on current
  comment settings and returns the full comment view with the pager set
  dynamically.


In drupal 7, this routing function is

comment/%comment


So it would be best in your view (with comment as a base table) to pull out:


cid (display none)
title (node relationship, required)


Display title as a link, path it to

comment/[cid]




If you are using Drupal 6, I would suggest rolling with contrib to fix core - with https://drupal.org/project/permalink which backports the above functionality