mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
ignore hash in routes for now
This commit is contained in:
parent
d19a33d59c
commit
07ea421bf4
1 changed files with 1 additions and 0 deletions
|
@ -515,6 +515,7 @@ impl RouteEnum {
|
|||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
let route = s;
|
||||
let (route, _hash) = route.split_once('#').unwrap_or((route, ""));
|
||||
let (route, query) = route.split_once('?').unwrap_or((route, ""));
|
||||
let mut segments = route.split('/');
|
||||
// skip the first empty segment
|
||||
|
|
Loading…
Reference in a new issue