Views field that links to fragment URL of comment on /node/ instead of /comment/ With Views, I want to output a list that links to each comment of the current node. But instead of linking to 



/comment/42#comment-42


I want to link to 

/node/23#comment-42


I tried these fields, but they all link to the URL in the /comment/ space:


Comment: Title (Formatter: Plain text)

/comment/42

Comment: Title (Formatter: Comment Permalink)

/comment/42#comment-42

Comment: Link to Comment

/comment/42



Is there a way to output anchors in the /node/ space? The solution doesn’t need to support comment pagination (a node will never reach the limit).
An ugly workaround (which will not work for paginated comments):


Add the field "Content: Link to Content"


Use the relationship "Content" (should be default when creating a comments view)
Enable "Exclude from display"
Enable "Output the URL as text"

Add the field "Comment: Comment ID"


Set "Formatter" to "Unformatted"
Enable "Exclude from display"

Add the field "Comment: Title"


Set "Formatter" to "Plain text"
Disable "Link to the Comment"
Enable "Output this field as a custom link" (under "Rewrite results")
Link path: {{ view_node }}#comment-{{ cid }}
(field names might differ, use what’s listed under "Replacement patterns")