- Issue created by @lvishal
- ๐ฎ๐ณIndia lvishal
I have added quick workaround domain access simple xml sitemap to make it work for now but it's not great.
- ๐ณ๐ฑNetherlands borisr
I ran into a similar problem. The attached patch fixed the issue in my project.
- Status changed to Needs work
5 months ago 7:59am 17 July 2024 - ๐ง๐ชBelgium tim-diels Belgium ๐ง๐ช
This issue needs more precise steps to reproduce.
What are the urls you're getting and expecting and where does it go wrong? - ๐ณ๐ฑNetherlands borisr
The issue occurs when trying to access a domain specific sitemap (like domain1.example.com/sitemap.xml, domain1.example.com/sitemap.xml). The issue (in my case) occurs when accessing the sitemaps directly in combination with Redirect module. The expected outcome of accessing the sitemap on a Domain level is that the Domain variant will be returned (in other words, the Domain specific sitemap variant will be returned at domain1.example.com/sitemap.xml etc.).
- ๐ง๐ชBelgium tim-diels Belgium ๐ง๐ช
Still donโt get it sorry.
To me everything is working correctly if going manually to a sitemap on a domain.Is it going wrong when you try to click a link somewhere? Because accessing the sitemap from domain1 on domain2 and visa versa wonโt workโฆ
- ๐ณ๐ฑNetherlands borisr
@tim-diels, thank you for trying to understand the issue. Sorry for not being able to explain the issue more clearly.
The issue occurs when on a domain (lets say domain1.example.com and trying to access the current domain sitemap at domain1.example.com/sitemap.xml). The sitemaps at /domain1_example_com/sitemap.xml etc. are accessible and containing the expected links.
But behaviour I'am expecting is that the sitemap links applicable for the current domain will be returned at /sitemap.xml.Does this explanation make more sense?
@lvishal can you add any further information regarding the issue?
PS The patch in #5 seems to resolve the issue (in my case) but some further testing will be appreciated.
- ๐บ๐ฆUkraine Anna D
Faced with many issues, one of them: domain-A/sitemap.xml shows 404 because there is no indexed content.
Sharing steps that works for me.
1. Install module.
2. Generate domain sitemap variant: /admin/config/domain/domain_simple_sitemap/config
3. Create new sitemap with your Domain type: /admin/config/search/simplesitemap/variants/add
4. Allow entities to be indexed in your new Domain Sitemap: /admin/config/search/simplesitemap/entities
5. Go to /admin/config/search/simplesitemap/types. Remove Entity URL generator.
6. Regenerate sitemap.