Skip to content

Injected SSR routes not following routing priority order #9392

@Fryuni

Description

@Fryuni

Astro Info

$ astro info
Astro                    v4.0.3
Node                     v18.18.0
System                   Linux (x64)
Package Manager          yarn
Output                   hybrid
Adapter                  @astrojs/node
Integrations             test-integration

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

Any browser

Describe the Bug

Non-prerendered routes added by integrations override any existing matching route.

What's the expected result?

The injected route should follow the same route priority order as if it were part of the project.

Link to Minimal Reproducible Example

With project route, working fine: https://stackblitz.com/edit/github-lukzfz-qbzgtv

With injected route, not working: https://stackblitz.com/edit/github-lukzfz-wradsh

Participation

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: nice to haveNot breaking anything but nice to have (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions