Skip to content

Injected endpoint with dots in pattern should no follow trailingSlash: always #13128

@florian-lefebvre

Description

@florian-lefebvre

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.

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly impacts performance (priority)feat: routingRelated to Astro routing (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions