This commit is contained in:
Greg Johnston
2023-01-12 09:57:08 -05:00
parent 7eaa36812d
commit cdf709fb09
8 changed files with 18 additions and 19 deletions

View File

@@ -361,7 +361,7 @@ where
}
fn provide_contexts(cx: leptos::Scope, req: &HttpRequest, res_options: ResponseOptions) {
let path = leptos_corrected_path(&req);
let path = leptos_corrected_path(req);
let integration = ServerIntegration { path };
provide_context(cx, RouterIntegrationContext::new(integration));

View File

@@ -524,9 +524,9 @@ where
.collect();
if routes.is_empty() {
return vec!["/".to_string()];
vec!["/".to_string()]
} else {
return routes;
routes
}
}