- ๐ธ๐ฐSlovakia durifal
I have the same problem. Problem is that the cron is always filtering also the domain on which it is runnig + domain for the sitemap. So here is how you can reproduce it:
- create at least 2 domains
- create content where some content will be accessible only for first domain, some only for second domain and some for both
- run the cron / rebuild sitemaps on the first domain
- You can see that first domain has all content links in sitemap, but the second domain has in sitemap only content links where both first domain and second domain is set and is missing all content links which have only second domain
- now run cron / rebuild sitemaps under second domain
- you can see that second sitemap has all links and sitemap for first domain is missing content which have only first domain.
@durifal
I have more or less the same issue, I've added it to this thread:
https://www.drupal.org/project/domain_simple_sitemap/issues/3251227#comm... โจ Make compatible with simple_sitemap 4.0 & domain_entity Fixed- ๐ธ๐ฐSlovakia durifal
I have found out that the problem appear because I have in the sitemaps (/admin/config/search/simplesitemap) also Default hreflang sitemap type. When I removed it and keep there only sitemaps for each domain, than all sitemaps are generated correctly.
I have also posted the issue in the thread:
https://www.drupal.org/project/domain_simple_sitemap/issues/3251227#comm... โจ Make compatible with simple_sitemap 4.0 & domain_entity Fixed - ๐ท๐บRussia _cosmos_ Izhevsk, Russia
I 've faced with the same bug, for example I have 2 domains
- Domain 1 has 3 articles
- Domain 2 has 2 articlesThen I created 2 sitemaps here /admin/config/search/simplesitemap
- Sitemap 1 (On Inclusion I set index Content only for sitemap1)
- Sitemap 2 (On Inclusion I set index Content only for sitemap2)If I run cron from Domain1 I got this:
- Sitemap 1 (indexed 3 articles)
- Sitemap 2 (empty sitemap)If I run cron from Domain2 I got this:
- Sitemap 1 (empty sitemap)
- Sitemap 2 (indexed 2 articles)It's always generate sitemap for 1 current domain and remove for others.
But I need to get result like:
- Sitemap 1 (indexed 3 articles)
- Sitemap 2 (indexed 2 articles)How to get the correct results?
- Status changed to Needs review
6 months ago 1:36pm 25 June 2024 - ๐บ๐ธUnited States veronicaSeveryn
Have you seen this comment: https://www.drupal.org/project/domain_simple_sitemap/issues/3251227#comm... โจ Make compatible with simple_sitemap 4.0 & domain_entity Fixed that might fix your problem? It did help me with indexing content by domains properly.
- ๐ช๐ธSpain paucala
Thank you @veronicaSeveryn you are totally right
I think this should be warned somewere though
Maybe on the front page of the module, maybe on the documentation...
And i think a possible update is one that changes the autogeneration of domian sitemaps and selects only the one correctGuys, if you're having the same issue, follow this comment of jeni_dc:
Sorry to keep adding to a closed issue, but for the folks who commented earlier and anyone else who ends up here, removing the default "Entity URL Generator" from the domain specific sitemap types generated by domain simple sitemap got me the correct results. Make sure "Domain entity URL generator" is the only entity URL generator available in the domain specific sitemap types otherwise all entities from the default domain get added to all of the sitemaps for the other domains.
In my case I was only adding nodes as well as taxonomy terms assigned to a domain through the domain entity module to the sitemaps.
This is with Simple XML Sitemap 4.1.8 and Domain Simple Sitemap 3.0.0-beta1.
- First commit to issue fork.
- Merge request !16Issue #3216846 by Martygraphie: Doesn't generate nodes sitemap for other websites (Multisite) domain access. Only the first site โ (Open) created by Martygraphie
- ๐ท๐ชRรฉunion Martygraphie Saint-Denis (Rรฉunion)
Hello,
I'm also reproducing the problem in version 3.x.
If I understand correctly the problem / solution proposed by @veronicaSeveryn
I proposed a fix following feedback from @veronicaSeveryn. Which only adds Domain entity URL generator when creating the variant. I'm not aware of the impact on other features.