Skip to content

Route prioritization should disregard (foo) segments #6235

Closed
@Conduitry

Description

@Conduitry

Describe the bug

When the routes are being prioritized, they should disregard (foo) segments. Currently, something like (foo)/[...catchAll] is prioritized above bar because it has more segments. (foo) segments shouldn't be counted when doing this sorting.

Reproduction

none, currently

Logs

No response

System Info

System:
    OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
    Memory: 10.36 GB / 12.32 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Yarn: 1.22.19
    npm: 8.15.0

Severity

blocking an upgrade

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrouter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions