Sitemaps are generating without a suffix regardless of the settings in the admin.
It appears that when enterprise_url_rewrite was written as a port from core_url_rewrite that the suffix was missed.
Adding suffix awareness to the _getEntityUrl() function for category and product entities in the sitemap resource model seems trivial, but is there something else I am missing or is this a bug that is affecting other people?
http://pastebin.com/RPWVrhae has a bit more code.
I verified this same issue exists on a separate project also running  |||IP_ADDRESS||| .
Here is a more robust version of the above for anyone implementing this as a patch. This should be applied as a proper local rewrite of Mage_Sitemap_Model_Resource_Catalog_Category and Mage_Sitemap_Model_Resource_Catalog_Product, replacing instances of "category" with "product" in the latter.
Will not add a suffix if suffix is already present - in case there is ever a situation where this happens or if you accidentally end up applying this patch on a Community Edition site, which does not have the issue.
We are having the same issue for a Magento EE  |||IP_ADDRESS|||  site that we have just launched. No matter what I have attempted to do, I cannot get the suffixes to be added to the sitemap.
I came with the same conclusion as you to modify the Mage_Sitemap_Model_Resource_Catalog_Category and Mage_Sitemap_Model_Resource_Catalog_Product files to add on the suffix if it is set. I am also doing a check that will only add it if the suffix is not present, so if this issue is fixed down the road somewhere else, I do not have to worry about getting extra suffixes added.
If you find a solution, please post it on here so we can figure this out. I will post my solution as well, if I find one.
NOTE the main_table.entity_id reference instead.
Not the answer you're looking for? Browse other questions tagged magento-enterprise enterprise-1.13 sitemaps or ask your own question.
