Skip to content

fix: incorrect sitemap name #483

@bjarnef

Description

@bjarnef

🐛 The bug

Nuxt Sitemap v7.4.3

In a project we have a multi sitemap configured.

sitemap: {
  sitemaps: {
    ['sitemap-da']: {
      sources: [
        process.env.NUXT_PUBLIC_BASE_URL + '/sitemap-da.xml'
      ]
    },
    ['sitemap-en']: {
      sources: [
        process.env.NUXT_PUBLIC_BASE_URL + '/sitemap-en.xml'
      ]
    }
  }
},

Index sitemap has the following:

Image

At /__sitemap__/sitemap-da.xml:

Image

At /__sitemap__/sitemap-en.xml:

Image

🛠️ To reproduce

🌈 Expected behavior

I would have expected sitemap-en.xml to have sitemap-en.xml in the h2-heading, not sitemap-da.xml.

ℹ️ Additional context

No response

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