ignore hash in routes for now

This commit is contained in:
Evan Almloff committed 2023-07-14 11:53:44 -07:00
1 parent d19a33d59c
commit 07ea421bf4
1 file changed
+1
+1
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