-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't workingfullstackrelated to the fullstack craterelated to the fullstack craterouterRelated to the router implementationRelated to the router implementation
Description
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
Environment:
- Dioxus version: 0.7.2 Web + Fullstack
- Rust version: 1.91.1
- OS info: Windows 11
- App platform: Chrome
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfullstackrelated to the fullstack craterelated to the fullstack craterouterRelated to the router implementationRelated to the router implementation