Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Good day!
Site http://litera.in.ua is multilingual, with module XML sitemap, which genenit http://litera.in.ua/ua/sitemap.xml
The challenge is to remove from the list of links like http://litera.in.ua/ua/node/113 where the prefix is added to the language from the path of the material in another language (like here - the prefix Ukrainian, and the material in Russian).
Can anybody share the solution?
Comments
Comment #1
Dave ReidIf you are using the i18n module you can enable the xmlsitemap_i18n module as well.
Comment #2
neibo CreditAttribution: neibo commentedDave Reid, its enabled.
The problem is that I can see the english node with russian prefix. The path to such material provides xmlsitemap. This should not be.
Comment #3
neibo CreditAttribution: neibo commentedanyone can help me?
Comment #5
Farreres CreditAttribution: Farreres commentedhey, come on, this is not solved even in dev version. I have two languages, spanish and english. All nodes have two versions, one spanish and one english. In the spanish sitemap no node is shown. In the English sitemap everything is listed. Somehow node language is not properly detected. Something is wrong. If you need more info, ask me.
Comment #6
enomertens CreditAttribution: enomertens commentedHi all
Same issue here, 3 sitemaps en, nl, fr
English: ok
Dutch: shows english urls and dutch urls (NOT OK)
French: shows english urls and french urls (NOT OK)
Any solutions yet,.... It seems I'm not the only one :(
Kind regards
Eno
Comment #7
Dave Reid1. What is your 'Content selection mode' setting set to on admin/settings/language/i18n?
2. Have you enabled the xmlsitemap_i18n module and created separate sitemaps for each language (and also made sure to edit your default language sitemap and save it)?
Comment #8
enomertens CreditAttribution: enomertens commentedHi thanks already for the fast reply :) actually I'm using the §.x-2.0-beta1 (but i tried the dev too, was the same problem)
1) My content selection settings are on 'mixed current language (if available) or default language (if not) and language neutral
2) yes, it's enabled. My default sitemap was enlgish and I've added the other ones (french and dutch) (I didn't edit anything, the default looked ok, only included the right content types.)
So the other sitemaps are showing the defaul sitemap urls also.
Kind regards,
Eno
Comment #9
Farreres CreditAttribution: Farreres commentedhey, sorry for causing the reopening of this issue. I think this problem gets corrected when you empty the caches. Could you please try and check? For me, it was solved after I cleared caches. There is a problem indeed, at least something undocumented that you must do the first time you install.
Comment #10
bavarian CreditAttribution: bavarian commentedsimilar problem here - subscribing !
Comment #11
enomertens CreditAttribution: enomertens commentedHi all,
I solved this problem on my installation. Change the multilingual settings.
Site configuration ==> languages ==> multilingual system ==> select: Current language and language neutral.
Rebuild sitemap, and normally the problem will be solved.
Kind Regards,
Eno
Comment #12
bavarian CreditAttribution: bavarian commentedDon't know if my "problem" is related to this module....
The multilingual settings on my site are "current language and language neutral".
Site is running English, Swedish and German language.
3 sitemaps (Swedish was the standard when module was installed first)
Problem description for MENUE items in sitemaps only: Swedish sitemap may show menue-links like this
http://blablabla.xx/sv/content/personal-contact (OK)
http://blablabla.xx/sv/content/second-expample (OK)
http://blablabla.xx/sv/content/third-example (OK)
....
....
further down after links with descriptive paths
http://blablabla.xx/sv/node227 (NOT OK, english version of "personal-contact"link from above)
http://blablabla.xx/sv/node229 (NOT OK, german version of "personal-contact"link from above)
same applies to english sitemap and german sitemap. there the "sv" is replaced with "EN" or "DE" respectively. with a few OK descriptive content-links, and further down, links to the same nodes in other langages again (not ok)
Comment #13
bserem CreditAttribution: bserem commented#11 seems to do the trick, although in my installation I have "Only Current Language"
now I have two sitemaps, each one with half the links as the sitemap.xml of v1.2