-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
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
Problem generating a sitemap #6618
Comments
if i run the repro locally it seems to work fine. we get a that then has several maybe its just me though? could you try the repro again? |
I think it's because the 'trailingSlash: "never"' option is missing in the repro. I tested locally and this error seems to occur when both I think I can solve this issue. If nobody is currently working to solve it, I would like to work on this issue. |
@andremralves go for it, doesn't sound like anyone's on it im gonna guess its some buggy concatenation in the sitemap integration, probably a good place to start. joining paths without a trailing slash to separate them assuming depending on the node standard lib is fine - could maybe use |
What version of
astro
are you using?2.1.2
Are you using an SSR adapter? If so, which one?
Vercel
What package manager are you using?
npm
What operating system are you using?
Linux, WSL2
What browser are you using?
Chrome
Describe the Bug
The bug i Am experiencing is with this minimal astro config
This produce 2 sitemap files, the first one is sitemap-index.xml
Here we should have
https://example.com/blog/sitemap-0.xml
then in the second file: sitemap-0.xml i have this:
where i should have a url like
https://sundes.com/blog/post/1
I think this is a bug in the plugin, i will try to fix this, but i am not sure if i could create a working PR for this
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-47cfzy?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: