Problem/Motivation

We are using XML Sitemap, XML Sitemap Internationalization, XML Sitemap Node, and Multi-Domain XML Sitemap (although, this problem occurs even with this module disabled).

Our front page varies by language & is an entity called "homepage"(ECK entity "homepage" with a bundle called "homepage").

Given this setup, the sitemap.xml file does not have the correct URL to the front page. The front page appears to actually be /batch. ("https://DOMAIN/en-us/batch"). The /batch link has priority 1 and is updated daily (same settings that should be getting applied to the front page link)

Steps to reproduce

I have not attempted to reproduce this on a clean drupal install, but at minimum you would need a multi-lingual site, with the modules listed above enabled & the front page set to a different entity URL per language. (eg, an entity called "homepage" and bundle called "homepage" and the path to it being something like homepage/homepage/1.

In the database table "xmlsitemap", the entry for the front page is:
[id, type, subtype, loc, language]: [0, 'frontpage', '', 'und']

I can confirm this setup was working at one time. This is a bug we've only recently noticed. It's possible this is a result of a change to another module. If it is due to xmlsitemap, it was probably introduced in the release of version 2.5. This bug is happening at least on xmlsitemap 2.5 and 2.6.

Switching the front page to a node, then reubilding the sitemap files doesn't seem to resolve the issue. /batch is still in the sitemap, priority 1, updated daily. Database record for 'frontpage' is still the same.

Comments

Redlow created an issue.