Fix queries in ssr_router example (#3587)

This commit is contained in:
Oliver Bilbie 2024-10-11 17:46:03 +00:00 committed by GitHub
parent b2cba911ac
commit 7be9d17ec4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ async fn render(
Query(queries): Query<HashMap<String, String>>,
State((index_html_before, index_html_after)): State<(String, String)>,
) -> impl IntoResponse {
let url = url.to_string();
let url = url.path().to_owned();
let renderer = yew::ServerRenderer::<ServerApp>::with_props(move || ServerAppProps {
url: url.into(),