? forum_feed_aliasing_uses_tax.patch
Index: pathauto.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto.inc,v
retrieving revision 1.1.2.13
diff -u -p -r1.1.2.13 pathauto.inc
--- pathauto.inc	30 Oct 2007 20:02:36 -0000	1.1.2.13
+++ pathauto.inc	2 Nov 2007 12:50:59 -0000
@@ -249,8 +249,16 @@ function pathauto_create_alias($module, 
   // by the module
   if (variable_get('pathauto_'. $module .'_applytofeeds', FALSE)) {
     $feedappend = variable_get('pathauto_'. $module .'_supportsfeeds', '');
-    // Handle replace case (get existing pid)
-    _pathauto_set_alias("$src/$feedappend", "$alias/feed", NULL, $verbose);
+    // If we're in a forum, the src doesn't form the base of the rss feed
+    // TODO refactor this out
+    if ($module == 'forum') {
+      $pieces = explode('/', $src);
+      $tid = $pieces[1];
+      _pathauto_set_alias("taxonomy/term/$tid/$feedappend", "$alias/feed", NULL, $verbose);
+    }
+    else {
+      _pathauto_set_alias("$src/$feedappend", "$alias/feed", NULL, $verbose);
+    }
   }
 
   return $alias;
