Skip to content

Page names conflict with folder names in the project root #15655

@devcustrom

Description

@devcustrom

Astro Info

Astro                    v6.0.0-beta.11
Vite                     v7.3.1
Node                     v22.22.0
System                   Windows (x64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/node (v10.0.0-beta.4)
Integrations             @astrojs/vue (v6.0.0-beta.1)

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

If you create a test folder in the root of the project and create it in src/pages/test.astro, you will get a 404 error when navigating directly to http://localhost:4321/test but when using ClientRouter, the page opens, the problem is reproduced only in version 6.

What's the expected result?

Behavior as in version 5 without name conflict

Link to Minimal Reproducible Example

https://github.com/devcustrom/astro-pinia-bug/tree/404

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions