ignore hash in routes for now

This commit is contained in:
Evan Almloff 2023-07-14 11:53:44 -07:00
parent d19a33d59c
commit 07ea421bf4

View file

@ -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