Skip to content

Injected endpoints with trailingSlash: 'always' are not accessible #13105

@florian-lefebvre

Description

@florian-lefebvre

Astro Info

Astro                    v5.2.1
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

I uncovered this bug when using https://inox-tools.fryuni.dev/custom-routing. All endpoints not containing a dot (eg. test.js.ts) when forcing the trailing slash are not accessible.

Notes:

  • This bug existed prior to 5.2
  • If the endpoint is in pages, it works fine

What's the expected result?

Those endpoints should be accessible

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-txhq5tra?file=astro.config.mjs,src%2Froutes%2Ftest.ts&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: integration apirelated to the public integration APIs (scope)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