-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Injected endpoint with dots in pattern should no follow trailingSlash: always #13128
Copy link
Copy link
Closed
Closed
Copy link
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)feat: routingRelated to Astro routing (scope)Related to Astro routing (scope)
Description
Astro Info
Astro v5.2.3
Node v18.20.3
System Linux (x64)
Package Manager npm
Output server
Adapter none
Integrations test
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
With #13105, trailing slash is always appended to endpoints no matter their pattern.
What's the expected result?
Patterns containing a dot (eg. sitemap.xml) should not have trailing slash applied
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-txhq5tra-rbvpw4ny?file=astro.config.mjs&on=stackblitz
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly impacts performance (priority)Violate documented behavior or significantly impacts performance (priority)feat: routingRelated to Astro routing (scope)Related to Astro routing (scope)