Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Impossible to configure similar routes #132

Description

@thorn0

Let's try to configure two routes:

  1. {regex(^\w+$):foo}/{regex(^\d+$):bar}
  2. {regex(^\w+$):foo}/{regex(^[a-z]+$):bar}

The only difference between them is inside the second regex. If we try to open a URL that matches the first route, we'll see that this route can't be found. If we look into $route.routes in the console, we'll see something like:

▶ /$0:regex/$1:regex: Object
▶ null: Object

Only one entry instead of two.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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