Merge branch 'DioxusLabs:master' into dedup-history

This commit is contained in:
ealmloff authored and GitHub committed 2023-08-01 12:32:46 -05:00
commit 0c093964bc
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -485,7 +485,13 @@ impl RouteEnum {
let mut segments = route.split('/');
// skip the first empty segment
if s.starts_with('/') {
segments.next();
let _ = segments.next();
}
else {
// if this route does not start with a slash, it is not a valid route
return Err(dioxus_router::routable::RouteParseError {
attempted_routes: Vec::new(),
});
}
let mut errors = Vec::new();
+1 -1
View File
@@ -367,7 +367,7 @@ impl<'a> RouteTreeSegmentData<'a> {
let child_name = &child.ident;
quote! {
let mut trailing = String::new();
let mut trailing = String::from("/");
for seg in segments.clone() {
trailing += seg;
trailing += "/";