Hi,

I have a question about generating different xml sitemaps for each language on your site.
On my site I have 3 menus, "Main menu NL", "Main menu EN" and "Main menu FR". Each menu is displayed for a specific language on my site, using menu blocks.

With the XML Sitemap module you can define an xml sitemap for each language, and you can also enable the XML Sitemap Menu submodule. I include the 3 menu's for my xml sitemaps, but when I rebuild the links all menu links are included in each of the sitemaps... EN and FR menu links are included in the NL xml sitemap and the other way around...
Is there a work around for that?

I need this module for the SEO aspects of my site... All tips would be appreciated :)

Thanks!

Comments

bisonbleu’s picture

Same problem.

Site initially installed in French.
French is the default language.
Menus are of type 'Fixed Language' and have a predefined language.
English was added afterwards.
Multilingual functionalities work as expected.
Drupal 7.20
XML Sitemap 7.x-2.0-rc2+0-dev

French map looks like this

http://example.com/fr
http://example.com/fr/a-propos
http://example.com/fr/aide
http://example.com/fr/commercial-1
http://example.com/fr/contact
http://example.com/fr/inscrire-une-garderie
http://example.com/fr/node/3 (eng translation of fr/a-propos)
http://example.com/fr/node/4 (eng translation of fr/inscrire-une-garderie)
http://example.com/fr/node/7 (eng translation of fr/aide)

English map look like this

http://example.com/en
http://example.com/en/about-us
http://example.com/en/about-us
http://example.com/en/commercial-1
http://example.com/en/contact
http://example.com/en/help
http://example.com/en/help
http://example.com/en/register-a-daycare
http://example.com/en/register-a-daycare

Note that all duplicates are from the Page content type. The 'commercial-1' link is a custom content type.

bisonbleu’s picture

Category: support » bug

Changing to bug report.

BlinX’s picture

I had same problem, seems using "Translation redirect" module which is part of the Internationalization (i18n) package, does the trick.

neilos78’s picture

Same here - BlinX, enabled the "Translation redirect" module and rebuilt the links and the problem still persists. My issue sounds similar to bisonbleu's problem, in English works fine, but the page links on the translated sitemap.xml contains the node id's and not the aliases.

BlinX’s picture

Checked after reading last message of neilos78, here also not what I expected.
I now have 2 sitemaps with same content,
One in domain/sitemap.xml the other in domain/en/sitemap.xml both with only the folders and files of the main language.

ludo.r’s picture

I'm having the same issue too!

ludo.r’s picture

Have a look at https://drupal.org/node/1966512#comment-7280970.

The provided patch seems to fix this issue correctly.
Please review it.

andriyun’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Issue tags: +CodeSprintUA

This bug very well described in issue
#1966512: xmlsitemap_menu failing to properly create sitemaps for other languages.
Patch from comment https://www.drupal.org/node/1966512#comment-9453931 fully covered issue problem and can be used as hotfix.

Please write any comments to about issue subject to issue #1966512: xmlsitemap_menu failing to properly create sitemaps for other languages.