Closed (fixed)
Project:
Category
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2007 at 08:04 UTC
Updated:
22 Jul 2007 at 21:47 UTC
The Category module adds feed URL to category page in following way:
drupal_add_feed('node/'. $node->nid .'/feed', 'RSS - '. $node->title);
(category.module, line ~1557)
which generates following url: http://example.com/node12/feed, which is invalid for non-clean-url sites, and causes 404 error.
Quick fix is to change the line to:
drupal_add_feed('?q=node/'. $node->nid .'/feed', 'RSS - '. $node->title);
.
Note: probably there is similar error for category feeds.
Comments
Comment #1
sherpaCZ commentedBetter could be to use internal "url" function, maybe with absolute url generation (as it's used in node.module):
So the patch could be like this:
The same case is in function category_category_page when drupal_add_feed function is used too.
Comment #2
bdragon commentedCommitted to DRUPAL-5 and HEAD.
Comment #3
(not verified) commented