Skip to content

Failed to parse route Route did not match: Attempted Matches: #5154

@exellian

Description

@exellian

Problem
I'm experimenting with the router and i have the following setup:

#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip]
enum Route {
    #[route("/auth")]
    Auth {},
    #[route("/:..segments")]
    NotFound { segments: Vec<String> },
}

So I don't have the default root route "/" and a fallback page. When I try to access the page "/" I get the following error:

Failed to parse route Route did not match: Attempted Matches:

Steps To Reproduce

Steps to reproduce the behavior:

  • Create minimal router example
  • Remove the default root route "/" and add a fallback route
  • access the route "/" in the webbrowser

Expected behavior

I would expect that the router matches the "NotFound" route

Screenshots

Image

Environment:

  • Dioxus version: 0.7.2 Web + Fullstack
  • Rust version: 1.91.1
  • OS info: Windows 11
  • App platform: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfullstackrelated to the fullstack craterouterRelated to the router implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions