Skip to content

[ BUG ] Incorrect sitemap path in sitemap index #359

@moonmeister

Description

@moonmeister

Describe the bug
when using simpleSitemapAndIndex I noticed in the sitemap-index.xml the paths to the sub index paths don't cotain the subfolder (destinationDir) in the path.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.net/sitemap-0.xml</loc>
  </sitemap>
</sitemapindex>

Expected behavior
The location should contain the destination directory.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://example.net/sitemap/sitemap-0.xml</loc>
  </sitemap>
</sitemapindex>

Context:

  • version: 6.3.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions