Problem/Motivation
When viewing the sitemap it is being cached for the first domain.
Steps to reproduce
Have more than 1 domain. Once you see the sitemap for it then the second domain will also be served that sitemap instead of its own.
Proposed resolution
Minor code change in the controller to add cache context by url.site just as domain module needs it.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | default_sitemap_being_cached-3318889-1.patch | 640 bytes | vflirt |
Issue fork domain_simple_sitemap-3318889
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
vflirt commentedHere is the patch.
Comment #3
tim-dielsYou need to set the status to needs review when providing a patch. Otherwise no one knows to review this by looking over all issues in the queue but only when opening the issue itself. Setting this to needs review.
Comment #4
joshua1234511Issue is replicable on Latest 3.0.x-dev
Comment #6
damienmckennaSeems to help. Thank you.