From 7be9d17ec444d80d21ea258360a06826f701e7f9 Mon Sep 17 00:00:00 2001 From: Oliver Bilbie <68697462+Oliver-Bilbie@users.noreply.github.com> Date: Fri, 11 Oct 2024 17:46:03 +0000 Subject: [PATCH] Fix queries in ssr_router example (#3587) --- examples/ssr_router/src/bin/ssr_router_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ssr_router/src/bin/ssr_router_server.rs b/examples/ssr_router/src/bin/ssr_router_server.rs index 5a25266302a..95819169754 100644 --- a/examples/ssr_router/src/bin/ssr_router_server.rs +++ b/examples/ssr_router/src/bin/ssr_router_server.rs @@ -40,7 +40,7 @@ async fn render( Query(queries): Query>, 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::::with_props(move || ServerAppProps { url: url.into(),