Jump to:
| Project: | XML sitemap |
| Version: | 6.x-2.0-beta3 |
| Component: | xmlsitemap_i18n.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I believe I found a bug.
Basically I have two sites, one with the primary language in english and the other one with the primary in Spanish. Both have 2 languages, but just different primary language.
I create sitemaps for each language and for each domain, so I have four total (2 for site A, and 2 for site B) - each one has two languages, but the primary language is different.
When I create the sitemaps, everything works fine, but when I go to rebuild the links, the path prefixes are applied depending on which domain I use to rebuild links.
If I run rebuild links from Site A (english primary) I get a sitemap in english with no path prefix (which is correct) and a sitemap in spanish with prefix /es (which is correct). The problem is that with site B, since they dont have the same primary language, it applies the same path prefixes to the domains. So for Site B I get an /es prefix for my primary language (which is wrong - should be no prefix) and no prefix for my secondary langauge (wrong - should be /en). This wouldnt be a problem if I had the same primary language for all domains, but unfortuantely i dont.
If I run rebuild from Site B, the opposite happens, for site B everything comes out right (primary langauge which is spanish with no prefix and secondary language with /en prefix for english). For site A though, it applies the same results (english with en prefix and spanish with none). This is a problem.
Rather than look at each domain individually, and applying prefixes according to the settings of each (domain locale), it looks at the current domain which the rebuild links is currently running, and applies the path prefix settings from that domain to all of them.
Any help would be appreciated!
Comments
#1
I just disabled Multilingual Sitemap and it still happens. Basically, it sets the prefixes for the urls depending on the domain which the links are rebuilt, so in my case, since the domains have different primary language, this creates a problem.
#2
If the domain I am rebuilding links on has english as primary ( no prefix) and spanish as secondary (prefix /es), it does the same thing to my other domain - it makes it english no prefix and spanish prefix /es. THis is bad because I have domain locale and I have different primary languages, so on the second domain it should be english prefix (en) and spanish no prefix.
Rebuilding links takes the settings for the path prefix for the current domain and applies them to all domains, ignoring domain locale settings.
#3
D7.12
XML sitemap 7.x-2.0-rc1
XML sitemap domain 7.x-1.0-beta2
Domain Access 7.x-3.3
Internationalization 7.x-1.4
I need different settings (and different site map) for:
MAIN SITE
subdomain1
subdomain2
and be able to share some links (all of those sites share some content - but make links by source domain is fine).
And I simply CAN'T (or don't know exactly how) achieve it...