We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astro
1.0.0-beta.41
None
yarn
Linux
I'm using the v0.1.0 of @astrojs/sitemap and it's not generating the urls with the base path configured.
@astrojs/sitemap
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.
/c
https://www.example.com.br/c/my-path
https://www.example.com.br/my-path
https://stackblitz.com/edit/github-dhjv1h
The text was updated successfully, but these errors were encountered:
I forgot to say that the canonicalURL config option has the same problem as well. Apparently, adding something like https://www.example.com/c as the URL constructor base param trims the base path. https://github.com/withastro/astro/blob/main/packages/integrations/sitemap/src/index.ts#L71
canonicalURL
https://www.example.com/c
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
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:
The final sitemap URLs come without the
/c
, sohttps://www.example.com.br/c/my-path
ishttps://www.example.com.br/my-path
.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-dhjv1h
Participation
The text was updated successfully, but these errors were encountered: