My site is located at michelle.dev/d8b7. When I save a node, it ends up in the xmlsitemap loc field like "/d8b6/node/12" which causes the sitemap to have http://michelle.dev/d8b7/d8b7/node/12.

I don't have a patch ready for this, yet. Just noting it as it's the next issue I'll tackle and I'm stopping for the night.

Comments

Michelle’s picture

I spent some time looking at this today but am not sure of the path forward. The link it is using is coming from "$uri = $entity->url();" where $entity is the node. So it's coming right from core with the subdirectory in there. That seems wrong to me but maybe I'm misunderstanding how it should work. At this point, I don't know if this is actually a bug in xmlsitemap, a bug in core, or me just misunderstanding something. Even if it's me misunderstanding, something is wrong somewhere as this issue makes the sitemap link wrong.

I'm just going to leave this out there for now and hopefully someone else can chime in with thoughts.