-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
@astrojs/sitemap 1.3.1 adds endpoints with trailing slash #7080
Comments
Bonus: it doesn't add dynamic endpoints, only static. Still in 1.3.3
|
Hey, there's now a way to configure this not to include the trailing slash. You can configure your
For more information: https://docs.astro.build/en/reference/configuration-reference/#trailingslash |
Unfortunately that's not the answer. In my case I'd have to use |
Hey sorry it's taken us a while to get to this one! I'm working on this now. |
What version of
astro
are you using?2.4.5
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Edge
Describe the Bug
Starting with astrojs/sitemap 1.3.0, endpoints like
rss.xml
are included insitemap-0.xml
.Should sitemap include endpoints (data, images, rss etc.) at all?
If so, the trailing slash needs to be trimmed as the URLs are invalid.
<url><loc>https://example.com/rss.xml/</loc></url>
Repro: Run build in stackblitz sample and inspect
sitemap-0.xml
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-xfdxg4
Participation
The text was updated successfully, but these errors were encountered: