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(),