Skip to content

🐛 BUG: Sitemap generation does not contain base path #3546

@caioferrarezi

Description

@caioferrarezi

What version of astro are you using?

1.0.0-beta.41

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn

What operating system are you using?

Linux

Describe the Bug

I'm using the v0.1.0 of @astrojs/sitemap and it's not generating the urls with the base path configured.

In my project I have something like:

export default defineConfig({
  site: 'https://www.example.com.br',
  base: '/c',
  ...
})

The final sitemap URLs come without the /c, so https://www.example.com.br/c/my-path is https://www.example.com.br/my-path.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-dhjv1h

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions