<link> not puting in product node

Project: 
Google Base RSS
Category: 
bug report
Priority: 
normal
Status: 
patch (needs review)

The product link isn't putting in the correct link. It well put in the url to your site as it should but not putting in the node path to the product.
    $output .= '<link>' . $GLOBALS['base_url'] . $product->path . '</link>';
This is what I have come up with after some playing around...

    $output .= '<link>' . $GLOBALS['base_url'] . '/' . drupal_get_path_alias('node/' . $node->nid) . '</link>';