If pathauto is used and a pattern set for taxonomy terms, the (rss) feed link provided in the footer of the term page is not correct.

Example

Pathauto is set so that the taxonomy term url pattern is : [term:vocabulary]/[term:name]

On every term page, the feed url computed by Energetic is : [term:vocabulary]/taxonomy/term/##/feed. Which is wrong and leads to a 404. It should not insert the value returned by [term:vocabulary] evaluation.

Solution

Replace code for feed (line 76 of page.tph.tpl) by the code used in Garland.

Energetic code :
<a href="<?php $feedsUrls = array_keys(drupal_add_feed()); if(isset($feedsUrls[0]) && strlen($feedsUrls[0])>0) {print $feedsUrls[0];} ?>" class="rss-tag-icon" title="RSS"></a>

Garland code :
<?php print $feed_icons ?>

Results

  • The generated link for the feed is correct. No more 404.
  • Title and alt are correct.
  • The rendering is slightly different : i noticed the icon is centered in the footer.