Skip to content

fix: generating sitemaps with a slash (/) in the nameΒ #467

@sxppro

Description

@sxppro

πŸ› The bug

When there is a / in a sitemap name under sitemap.sitemaps of the config, a subfolder is created successfully, however, there seems to be an issue fetching the sitemap urls for that sitemap in the case of dynamic URLs.

πŸ› οΈ To reproduce

https://stackblitz.com/edit/nuxt-starter-m7ju6zzh

🌈 Expected behavior

Sitemap data is correctly fetched.

ℹ️ Additional context

We want to generate sitemap files, some under a subfolder and others not. There is the sitemapsPathPrefix option but applies a prefix to all sitemap files. Ideally we would like a way to prefix some sitemap files, which is what I'm doing through the name of the sitemap but it is running into the issue above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions