Skip to content

Static paths error interfere with other route #9819

Description

@cdtut

Astro Info

Astro                    v4.2.4

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

No response

Describe the Bug

Route /1/2/3 works and /1/2/4 throws error. Expected because of throw in getStaticPaths.

Move throw from index.astro to [a].astro, now both routes throw error.

What's the expected result?

Going to /1/2/3 should throw error but /1/2/4 should not.

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-1o5lsw-jekzzs

Participation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P3: minor bugAn edge case that only affects very specific usage (priority)feat: devRelated to `astro dev` CLI command (scope)pkg: astroRelated to the core `astro` package (scope)triage: fix verifiedReporter confirmed the triage bot fix works

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions