DioxusLabs / DioxusLabs/dioxus
Failed to parse route Route did not match: Attempted Matches:
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
I'm experimenting with the router and i have the following setup:
```rust
#[derive(Debug, Clone, Routable, PartialEq)]
#[rustfmt::skip]
enum Route {
#[route("/auth")]
Auth {},
#[route("/:..segments")]
NotFound { segments: Vec },
}
```
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.