Hey there.

I'm having trouble with my "recent-comments"-block. The comment-titles link to www.url.com/270#comment-8. This site doesn't eixist though. It should either be www.url.com/NODE/270#comment-8 or even better: the clean-url.

googled and searched everywhere, but can't find anything on this. Even tried to build the link myself with a custom link, but that won't work, cause # is rendered to some weird html-code.

Anyone know, what could be the problem?

thanx in advance!

Comments

yched’s picture

Project: Content Construction Kit (CCK) » Drupal core
Version: 6.x-2.1 » 6.9
Component: CCK in core » comment.module

I don't think you intended to post this in the CCK queue - moving this to drupal core queue, under the assumption you're having issues with comment.module's 'recent comments' block.

emagus’s picture

Project: Drupal core » Views
Version: 6.9 » 6.x-2.3
Component: comment.module » comment data

sorry, you're right. It's not cck. It's views. Not the built-in-recent-comments-block. That one doesn't let me configure the number of comments. That's why i want to use the views-recent-comments-block, which is causing my problem. sorry for my mistake.

JamesOakley’s picture

Category: support » bug
Priority: Normal » Critical
FileSize
5.21 KB

I have this identical problem. (I spotted it because I was getting lots of 404 errors in my dblog with search engines looking for www.example.com/nnnn, when the spider should have found a link to www.example.com/node/nnnn (or its alias).)

This bug occurs both in a block created with Views, and in a Views page. To replicate: (i) Create a "Recent Comments" View, (ii) Link the comment title to its URL. The result is that it links incorrectly, as described above.

I've changed the priority to critical because the effect of the bug is to populate the site with broken links.

For more information, I've attached an export of the view that doesn't work on my site.

nirvanajyothi’s picture

same here.have got a block which lists the comments content correctly.but the title links are broken.

Eg.Points to http://example.com/245#comment-39 instead of

http://example.com/node/245/talk#comment-39

Andrzej7’s picture

I have the same error

deshilachado’s picture

You have two problems here:

LeisureLarry’s picture

In order to fix the problem for the "recent-comments"-block using views 2.3 just copy the attached file to your themes folder, rename it as shown in the link and call admin/build/views/edit/recent_comments -> Basic settings ->Theme: Information -> Rescan template files -> Ok -> Save.

Greats from Germany
LeisureLarry (interiete.net)

mErilainen’s picture

What do you mean by saying "rename it as shown in the link"?

Andrzej7’s picture

Thanks for help, but there is still the problem:

Link to node is OK, but link to comment still looks like that: http://mysite.pl/1129#comment-4812

The file in: modules/views/theme/
name of file: views-view-field--recent-comments--subject.tpl.php
Have rescanned

What have I done wrong?

jbrauer’s picture

Status: Active » Closed (duplicate)

This was resolved in http://drupal.org/node/371466 and the patch has been applied.

Andrzej7’s picture

Thanks a lot

The pacht will be applied, but I've made it myself and i WORKS!

Thanks!